Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- CNT=$#
- if [ $CNT = 2 ] ; then
- echo "find . -type f -exec perl -pi -e 's/\"$1\"/\"$2\"/g' {} \;"
- find . -type f -exec perl -pi -e 's/$1/$2/g' {} \;
- else
- echo "[Usage] => replace.sh {search_string} {replace_string}"
- fi
Add Comment
Please, Sign In to add comment