diff --git a/bin/replace b/bin/replace index c4d0cb6..ccd3212 100755 --- a/bin/replace +++ b/bin/replace @@ -4,9 +4,9 @@ # # replace foo bar **/*.rb -find_this=$1 +find_this="$1" shift -replace_with=$1 +replace_with="$1" shift -ag -l --nocolor $find_this $* | xargs sed -i '' "s/$find_this/$replace_with/g" +ag -l --nocolor "$find_this" $* | xargs sed -i '' "s/$find_this/$replace_with/g"