[OS X TeX] iconv for a set of files

André Bellaïche abellaic at math.jussieu.fr
Wed Feb 3 22:41:33 CET 2010


Does anybody knows how one can convert a set of TeX files from  
applemac encoding to latin1?

I have tried the following command line

for file in 'ls *.tex'; do iconv -f MAC -t LATIN1 $file >  
$file.latin1 ; done

but I get the answer

-bash: $file.latin1: ambiguous redirect

If I use the redirection $file > $file, I get the same answer-bash:  
$file: ambiguous redirect

  What's wrong?

André Bellaïche




----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex




More information about the macostex-archives mailing list