12 lines
188 B
Text
12 lines
188 B
Text
|
#!/bin/sh -e
|
||
|
FROM="$1"
|
||
|
TO="$2"
|
||
|
shift ; shift
|
||
|
while [ $# -gt 0 ]
|
||
|
do
|
||
|
FILE="$1"
|
||
|
shift
|
||
|
iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
|
||
|
mv .tmp.iconv "$FILE"
|
||
|
done
|