Skip to content

Instantly share code, notes, and snippets.

@sidja
Created November 22, 2016 22:30
Show Gist options
  • Save sidja/cb2f1df95fa8a1c6379b4342cd3ce40d to your computer and use it in GitHub Desktop.
Save sidja/cb2f1df95fa8a1c6379b4342cd3ce40d to your computer and use it in GitHub Desktop.
Bash - Replace line script via sed
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