]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
shortcut pour iconv
authorVincent Le Gallic <legallic@crans.org>
Fri, 18 Apr 2014 13:12:54 +0000 (15:12 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 18 Apr 2014 13:12:54 +0000 (15:12 +0200)
utf8.sh [new file with mode: 0755]

diff --git a/utf8.sh b/utf8.sh
new file mode 100755 (executable)
index 0000000..7fb50fb
--- /dev/null
+++ b/utf8.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Pour convertir un fichier d'ISO vers UTF-8
+
+file=$1
+
+iconv -f iso8859-1 "${file}" | sponge "${file}"