Skip to content

Instantly share code, notes, and snippets.

@sven-bock
Created September 21, 2018 10:49
Show Gist options
  • Save sven-bock/d0fbecd8fd08c8287909aad8dd64a76a to your computer and use it in GitHub Desktop.
Save sven-bock/d0fbecd8fd08c8287909aad8dd64a76a to your computer and use it in GitHub Desktop.
Linux command line text replacement or renaming
#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