Skip to content

Commit

Permalink
Add find-replace.sh script.
Browse files Browse the repository at this point in the history
  • Loading branch information
xet7 committed Jun 17, 2020
1 parent 39be9aa commit bda49ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions find-replace.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

# Recursive find/replace.
# Syntax: ./find-replace.sh searchtext replacetext

egrep -lRZ '$1' . | xargs -0 -l sed -i -e 's/$1/$2/g'

0 comments on commit bda49ed

Please sign in to comment.