silent iconv master
authorDavid Marec <DavidMarec@users.noreply.github.com>
Mon, 26 Apr 2021 12:22:11 +0000 (14:22 +0200)
committerDavid Marec <DavidMarec@users.noreply.github.com>
Mon, 26 Apr 2021 12:22:11 +0000 (14:22 +0200)
rename.sh

index 85648988f0c2b32f7e311a8a3dd676c024fe3f70..decf59e379a3f0ca7617b9c8c6ed581209b357a8 100755 (executable)
--- a/rename.sh
+++ b/rename.sh
@@ -15,7 +15,7 @@ processing()
 {
        echo processing "${@}"
        newfile=`echo "$@" | sed "s/${prefix}//g"`
-       [ -n ${iconv} ] && newfile=`echo ${newfile} | iconv -c -t UTF-8`
+       [ -n ${iconv} ] && newfile=`echo ${newfile} | iconv -cs -t UTF-8`
        echo "  : copying <$newfile> into <${dest}>"
        cp "${@}" "${dest}/${newfile}"
 }