perl -pe1 infile > outfile
In place:
perl -i.bk -pe1 file
Portable program:
$/ = "\n"; $\ = "\r\n"; while (<>) { chomp; print; }
In reply to Re: dos2unix equivalent in Windows
by ikegami
in thread dos2unix equivalent in Windows
by gauravs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |