Skip to content

Instantly share code, notes, and snippets.

@markusritschel
Created June 26, 2020 10:23
Show Gist options
  • Save markusritschel/ff939078281ac15f7c409b10e88124de to your computer and use it in GitHub Desktop.
Save markusritschel/ff939078281ac15f7c409b10e88124de to your computer and use it in GitHub Desktop.
Find all occurences of a string in multiple files and replace them with another string
find . -name *.txt -type f -exec sed -i 's/string-to-replace/replacement-string/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment