Guest User

Untitled

a guest
Dec 14th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/sh
  2. CNT=$#
  3. if [ $CNT = 2 ] ; then
  4. echo "find . -type f -exec perl -pi -e 's/\"$1\"/\"$2\"/g' {} \;"
  5. find . -type f -exec perl -pi -e 's/$1/$2/g' {} \;
  6. else
  7. echo "[Usage] => replace.sh {search_string} {replace_string}"
  8. fi
Add Comment
Please, Sign In to add comment