Comment Re:Very Minimal Perl for Unix People (Score 1) 332
Perl has very useful -p option which read line to $_ and prints $_. So this becomes shorter:
perl -pe 's/\r//'
perl -pe 's/\r//'
If it happens once, it's a bug. If it happens twice, it's a feature. If it happens more than twice, it's a design philosophy.