Created
January 14, 2016 21:39
-
-
Save varhub/8d6025bde726eaac3316 to your computer and use it in GitHub Desktop.
Linux - Change extension of multiple files at once on Linux
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
# 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