summaryrefslogtreecommitdiff
path: root/conversion.sh
blob: f739eafe1786da1be7b29091c93c158b8fad7db2 (plain)
1
2
3
4
5
6
7
8
9
10
# startdate 2020-06-15
# References:
#    iconv(1), charsets(7)
for oldfile in $@ ; do
   test -w "${oldfile}" && {
      newfile="${oldfile}.2"
      iconv -c -f utf-8 -t iso-8859-1 < "${oldfile}" > "${newfile}"
      mv "${newfile}" "${oldfile}"
   }
done
bgstack15