aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbulkrename2
1 files changed, 1 insertions, 1 deletions
diff --git a/bulkrename b/bulkrename
index e0a23d8..3df3b4b 100755
--- a/bulkrename
+++ b/bulkrename
@@ -25,7 +25,7 @@ if [ $(wc -l < "${namebase}.1") -ne $(wc -l < "${namebase}.2") ] ; then
exit 1
fi
-sed -i "s/'/'\"'\"'/g" "${namebase}.1" "${namebase}.2"
+sed -i -- 's/\([\\"$`]\)/\\\1/g;' "${namebase}.1" "${namebase}.2"
paste -d "\n" "${namebase}.1" "${namebase}.2" | while read -r input ; do
read -r output