bin/replace -> sedall
This commit is contained in:
parent
d385ca0de2
commit
000f94568d
|
@ -12,7 +12,7 @@ main() {
|
||||||
shift 2
|
shift 2
|
||||||
|
|
||||||
for item in $(ag -l --nocolor "$search" "$@"); do
|
for item in $(ag -l --nocolor "$search" "$@"); do
|
||||||
sed -i "s%${search//%/\\%}%${replace//%/\\%}%g" "$item"
|
sed -ir "s%${search//%/\\%}%${replace//%/\\%}%g" "$item"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue