From: David Marec Date: Mon, 26 Apr 2021 12:22:11 +0000 (+0200) Subject: silent iconv X-Git-Url: http://popeye.lapinbilly.eu/git/?p=vrac.git;a=commitdiff_plain;h=b214c839811d90469b8d658040913c48f9c3cd01 silent iconv --- diff --git a/rename.sh b/rename.sh index 8564898..decf59e 100755 --- 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}" }