[OS X TeX] [bash] Pdfoutput=0 at the beginning of a file

Alain Matthes alain.matthes at mac.com
Sun Feb 12 18:55:35 EST 2006


Hello

I' m a beginner with bash but i would like to modify a script and a  
file foo.tex.
I would like to put pdfoutput=0 at the beginning of the file foo.tex.

My first idea is to put pdfoutput=0 in a new file "tempfile"

echo pdfoutput=0 > tempfile then cat tempfile foo.tex > newfoo.tex

Is it correct ? The problem : i need to test the existence of  
tempfile and newfoo.tex.

Perhaps there is a solution to add an a expression at the beginning  
of a file


Thanks Alain Matthes
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list