diff --git a/bin/replace b/bin/sedall similarity index 86% rename from bin/replace rename to bin/sedall index 158e908f..d67ab335 100755 --- a/bin/replace +++ b/bin/sedall @@ -12,7 +12,7 @@ main() { shift 2 for item in $(ag -l --nocolor "$search" "$@"); do - sed -i "s%${search//%/\\%}%${replace//%/\\%}%g" "$item" + sed -ir "s%${search//%/\\%}%${replace//%/\\%}%g" "$item" done }