-
-
Save jasonehines/db46f82740b92a01bf805a6aba43dab4 to your computer and use it in GitHub Desktop.
Find and rename file
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 file in current directory and rename some_file_name to end in .old | |
find . -iname *some_file_name* -exec mv {} {}.old \; | |
# find file in directory starting with rc and rename to end in .old | |
find .rc* -iname *some_file_name* -exec mv {} {}.old \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment