diff options
author | VG <vg@devys.org> | 2016-01-25 20:47:26 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2016-01-25 20:47:26 +0100 |
commit | ac5deefcfba8a5e29634af50cd43941d81b051c5 (patch) | |
tree | 01bb090cff9c1c393fdcfe10ae1904d371b03583 | |
parent | d114e9d54d63daa072cf0ea10e6a058592808a38 (diff) | |
download | bulkrename-ac5deefcfba8a5e29634af50cd43941d81b051c5.tar.gz bulkrename-ac5deefcfba8a5e29634af50cd43941d81b051c5.tar.bz2 bulkrename-ac5deefcfba8a5e29634af50cd43941d81b051c5.zip |
change quoting to make renaming review more readable and robust
-rwxr-xr-x | bulkrename | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |