Skip to content

Instantly share code, notes, and snippets.

@xsqian
Last active January 11, 2023 17:57
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 xsqian/3a391841362616eddf68e388f1f14880 to your computer and use it in GitHub Desktop.
Save xsqian/3a391841362616eddf68e388f1f14880 to your computer and use it in GitHub Desktop.
search and replace with sed
sed 's/<search regex>/<replacement>/g' <input file> <output file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment