Skip to content

Instantly share code, notes, and snippets.

@devnoname120
Created November 29, 2016 13:37
Show Gist options
  • Save devnoname120/5ca52e6a8f0ce6b3a192f54704747a00 to your computer and use it in GitHub Desktop.
Save devnoname120/5ca52e6a8f0ce6b3a192f54704747a00 to your computer and use it in GitHub Desktop.
Terminal one liner for renaming .c to .cpp
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