A useful perl one liner is
perl -p -i -e 's/\r\n/\n/' *.pl
Of course you can always do the reverse,
perl -p -i -e 's/\n/\r\n/' *.pl
A useful perl one liner is
perl -p -i -e 's/\r\n/\n/' *.pl
Of course you can always do the reverse,
perl -p -i -e 's/\n/\r\n/' *.pl
Stripping lines from a file, a quick perl one liner « The Dumping Ground said
[...] is using the loop –n does, similar to the trick I’ve used with –p, it’s just that the –n doesn’t print automatically. Instead I [...]