To convert from a Unix text file to a DOS text file with Perl, at the Unix shell prompt, enter:perl -p -e 's/\r$//' < dosfile.txt > unixfile.txt
perl -p -e 's/$/\r/' < unixfile.txt > dosfile.txt
In reply to Re: unix->dos & dos->unix
by husoft
in thread unix->dos & dos->unix
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |