bin/replace -> sedall

This commit is contained in:
Henrik Lissner 2018-01-24 00:56:36 -05:00
parent d385ca0de2
commit 000f94568d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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
}