dos2unix & unix2dos

Convert file with Windows line endings to UNIX and vice versa, all in Perl:
perl -i -pe 's/\r//g' dos2unix
perl -i -pe 's/\n/\r\n/g' unix2dos

No comments:

Post a Comment