Created
June 12, 2022 14:14
-
-
Save iandark/c11825dbc6b58fcdd8592d7ad2e572f4 to your computer and use it in GitHub Desktop.
shell - replace text inside multiple files
This file contains hidden or 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
| #!/bin/bash | |
| for f in *.extensionFile; do | |
| sudo sed -i 's/old-text/new-text/g' "$f" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment