Originally Posted by honem
It still seems to just put the r at the end of each line
|
Skah! Ok, try this script. Perl should behave predictably
Code:
#!/usr/bin/perl -pi
s/\n/\r\n/;
Of course, substitute the path for perl on your system in the first line. Once you make it executable (chmod +x), you should be able to call it like this (I named mine addcr.pl):
addcr.pl inputfile
It will just edit the existing file (no need for an output file name). We'll find a way to get this done if it kills me