From: Vincent Le Gallic Date: Sun, 20 Oct 2013 22:27:34 +0000 (+0200) Subject: ? X-Git-Url: http://gitweb.pimeys.fr/?p=scripts-20-100.git;a=commitdiff_plain;h=68c88dc7eed57942e5985ac8484ed835881b779a ? --- diff --git a/reencode.sh b/reencode.sh new file mode 100755 index 0000000..41de488 --- /dev/null +++ b/reencode.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +encoding=$(file "$1" | sed 's/.*: \([^ ]*\).*/\1/') +#echo $encoding + +if [ "$encoding" = "assembler" ] +then +# recode iso8859-1..utf-8 "$1" + exit 0 +fi + +if [ "$encoding" != "UTF-8" ] +then + true + file "$1" +fi