Skip to content

Instantly share code, notes, and snippets.

@varhub
Created January 14, 2016 21:39
Show Gist options
  • Save varhub/8d6025bde726eaac3316 to your computer and use it in GitHub Desktop.
Save varhub/8d6025bde726eaac3316 to your computer and use it in GitHub Desktop.
Linux - Change extension of multiple files at once on Linux
# find files bigger than 100Mb. If match .log extension, rename it to .bigfile
find log/ -type f -size +100M -exec rename -v 's/\.log$/\.bigfile/i' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment