Created
June 26, 2020 10:23
-
-
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
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
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