Created
November 16, 2020 14:41
-
-
Save voyager123bg/e46cdd50bf130022585154650988e678 to your computer and use it in GitHub Desktop.
recursively replace string in file structure with sed
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
# Replace all occurances of search with replace | |
egrep -lRZ 'search' .|xargs -0 -l sed -i -e 's/search/replace/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment