Skip to content

Instantly share code, notes, and snippets.

@beny
Created October 30, 2011 16:51
Show Gist options
  • Save beny/1326109 to your computer and use it in GitHub Desktop.
Save beny/1326109 to your computer and use it in GitHub Desktop.
convert LaTeX thesis template to unicode
#!/bin/bash
FROM=iso-8859-2
TO=UTF-8
FILES=("desky.tex" "fitthesis.cls" "literatura.bib" "obsah.tex" "prilohy.tex" "projekt.tex")
for i in "${FILES[@]}"
do
iconv -f $FROM -t $TO $i > tmp
sed 's/latin2/utf8/g' tmp > tmp2
mv tmp2 $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment