View Single Post
04-27-09, 09:50 AM   #12
Verissi
Premium Member
 
Verissi's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2006
Posts: 99
Originally Posted by honem View Post
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
  Reply With Quote