[OS X TeX] verbatim problems

Norman Gray norman at astro.gla.ac.uk
Thu Jul 6 15:56:58 CEST 2006


On 2006 Jul 6 , at 03.27, David Watson wrote:

> If the line endings are DOS, here is a little perl script to remove  
> them.

A full set of converters is:

alias todos="perl -pe 's/$/\r/'"
alias fromdos="tr -d '\r'"
alias frommac="tr '\r' '\n'"
alias tomac="tr '\n' '\r'"

(sh-style aliases; remove the '=' for csh-style aliases).

Use each as

     % fromdos <file.dos >file.unix

Less is more!

Norman


-- 
------------------------------------------------------------------------ 
----
Norman Gray  /  http://nxg.me.uk
eurovotech.org  /  University of Leicester, UK



------------------------- 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 macostex-archives mailing list