Last active
June 27, 2016 14:02
-
-
Save nalamchaitanya/69b338c014a76b7077e27957880ffe9e to your computer and use it in GitHub Desktop.
Find and replace a string all over a file in linux terminal.
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
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