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.

Revisions

  1. sidja created this gist Nov 22, 2016.
    6 changes: 6 additions & 0 deletions bash_replace_sed.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@


    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" {} +