Created
November 29, 2016 13:37
-
-
Save devnoname120/5ca52e6a8f0ce6b3a192f54704747a00 to your computer and use it in GitHub Desktop.
Terminal one liner for renaming .c to .cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in $(find . -name "*.c"); do mv -- "$f" "${f%.c}.cpp"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment