Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'fixing Mac line breaks w/ PERL (without blank lines)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
fixing Mac line breaks w/ PERL (without blank lines)
Authored by: elindal on Aug 23, '01 01:37:48AM

Using this can result in there being blank lines between each and every line that was there before.

To prevent this use

alias fle="perl -pi -e 's/\r\n?/\n/g' "

The difference here is the n? which tells to to also replace existing n that is there as long as it is attached to a r.

I hope this helps people

Richard Canning



[ Reply to This | # ]