Skip to content

Instantly share code, notes, and snippets.

@gerep
Created May 9, 2018 20:13
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 gerep/9134b1480b9b214fde7bb3347c5a2267 to your computer and use it in GitHub Desktop.
Save gerep/9134b1480b9b214fde7bb3347c5a2267 to your computer and use it in GitHub Desktop.
Using `sed` to replace string inside a file
sed -i '/old text/ s//new text/g' gigantic_file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment