$ trans :de -brief "over" >2.ascii.de.txt $ trans :de -brief "He must." >>2.ascii.de.txt $ cat 2.ascii.de.txt Über Er muss. $ iconv -f us-ascii -t UTF-8 2.ascii.de.txt -o 2.de.utf8.txt iconv: illegal input sequence at position 0 $ #### $ cat 2.create.bash #!/bin/bash # which bash version? echo "The shebang is specifying bash" if [ -z "${BASH_VERSION}" ]; then echo "Not using bash but dash" else echo "Using bash ${BASH_VERSION}" fi #get the the first number from $1 #c=$(("$1" : '\([0-9]*\).*$')) didn't work c=$(expr "$1" : '\([0-9]*\).*$') echo $c f=$1 #integer addition d=$(expr $c + 1) echo $d #munge new file, no clobber t="$d" q=${f#*.} s=$t.$q echo $s cp -n $f $s chmod +x $s echo $s >> 1.manifest ls -lh $s gedit $s & $ #### $ locale charmap UTF-8 $ locale -a C C.UTF-8 en_AG en_AG.utf8 en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IL en_IL.utf8 en_IN en_IN.utf8 en_NG en_NG.utf8 en_NZ.utf8 en_PH.utf8 en_SG.utf8 en_US.utf8 en_ZA.utf8 en_ZM en_ZM.utf8 en_ZW.utf8 POSIX ru_RU.utf8 ru_UA.utf8 $ locale -m ANSI_X3.110-1983 ANSI_X3.4-1968 ... UTF-8 VIDEOTEX-SUPPL VISCII WIN-SAMI-2 WINDOWS-31J $