Created
September 21, 2018 10:49
-
-
Save sven-bock/d0fbecd8fd08c8287909aad8dd64a76a to your computer and use it in GitHub Desktop.
Linux command line text replacement or renaming
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
#Rename multiple files: | |
rename 's/old-name/new-name/' files | |
#In file replacements: | |
sed -i 's/old-name/new-name/g' config.h.in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment