On Jun 22, 2005, at 11:07, Dan Klose wrote:
Hi everybody,
I have exported an EndNote 7 Library on my Mac to a Bibtex formatted
plain text file. When I look at the file, rather than having lines
ending with '\n' I seem to have '^M'. I think this is a Mac end of
line
problem but the things I have tried don't work and I was wondering if
anyone had any ideas/bits of code to get round this.
If there are no \ns then you could do just this:
perl -pi -we 's/\015/\n/g' filename
Note that since $/ is \n the file will be slurped by -p.
-- fxn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>