Skip to content

Instantly share code, notes, and snippets.

@nalamchaitanya
Last active June 27, 2016 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nalamchaitanya/69b338c014a76b7077e27957880ffe9e to your computer and use it in GitHub Desktop.
Save nalamchaitanya/69b338c014a76b7077e27957880ffe9e to your computer and use it in GitHub Desktop.
Find and replace a string all over a file in linux terminal.
sed 's/<string to find>/<string to replace>/g' <file to find and replace>
# sed is a tool to find and replace in terminal.
# the thing in quotations is the main gist of command.
# s means search.
# g means do the operation globally over the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment