This commit is contained in:
wbemont 2026-09-09 11:51:42 -05:00 • committed by GitHub
commit 8922f7ca26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,4 +3,4 @@ old_text=$1
new_text=$2
echo "Old text: ${old_text}"
echo "New text: ${new_text}"
grep -rl "${old_text}" . | xargs gsed -i -e '1h;2,$H;$!d;g' -e "s/${old_text}/${new_text}/g"
grep -rlZ -- "${old_text}" . | xargs -0 gsed -i -e '1h;2,$H;$!d;g' -e "s/${old_text}/${new_text}/g"