Created
November 22, 2016 22:30
-
-
Save sidja/cb2f1df95fa8a1c6379b4342cd3ce40d to your computer and use it in GitHub Desktop.
Bash - Replace line script via 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
find /file/or/directory/path -type f -exec sed -i "s/find_string/replacement_string/g" {} + | |
# Example | |
find /home/befitting1/code/befit_ecs/df/Dockerfile_locally -type f -exec sed -i "s/%%PROXY%%/$PROXY/g" {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment