From 68c88dc7eed57942e5985ac8484ed835881b779a Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Mon, 21 Oct 2013 00:27:34 +0200 Subject: [PATCH] ? --- reencode.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 reencode.sh 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 -- 2.39.2