[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

More information about the macostex-archives mailing list