moo@cow[1]~>which rnfix rnfix: aliased to perl -pi.bk -e 's/\r\n?/\n/g'
I find it very handy, hence the alias, but use with caution! It's fine for text files. It will break binary files. I added a .bk for the example. Take it out if you're sure you know what you're doing. (update, took out the /g, pretty sure that was just a stupid reflex; update, update: put it back, I need to lie down.)
In reply to Re: Perl Regex to Fix line feed issue
by Your Mother
in thread Perl Regex to Fix line feed issue
by mmittiga17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |