Re: Convert from unix newlines to dos newlines

2007-08-25 Thread Xavier Noria
On Aug 25, 2007, at 4:53 PM, Yoyoyo Yoyoyoyo wrote: Thanks, but quick question. If I do it from the command line it works fine. But if I add: `perl -pi -we 's/\n/\r\n/' ./student.csv`; to my perl script it doesn't make the change to the file. Is there a reason for this? Sure, the lite

Re: Convert from unix newlines to dos newlines

2007-08-25 Thread Yoyoyo Yoyoyoyo
Thanks, but quick question. If I do it from the command line it works fine. But if I add: `perl -pi -we 's/\n/\r\n/' ./student.csv`; to my perl script it doesn't make the change to the file. Is there a reason for this? Robert Xavier Noria <[EMAIL PROTECTED]> wrote: On Aug 25, 2007, at 4:5

Re: Convert from unix newlines to dos newlines

2007-08-25 Thread Xavier Noria
On Aug 25, 2007, at 4:54 AM, Yoyoyo Yoyoyoyo wrote: I use a mac and I was wondering if there was a way to convert unix newlines in a text file to dos newlines. Yeah, with a Perl one-liner it would be perl -pi -we 's/\n/\r\n/' file.txt or perl -pi.bak -we 's/\n/\r\n/' file.txt if you w

Re: Convert from unix newlines to dos newlines

2007-08-24 Thread Jeff Pang
the simple way is to use shell command 'unix2dos'. $ unix2dos file.txt 2007/8/25, Yoyoyo Yoyoyoyo <[EMAIL PROTECTED]>: > Hi all, > > I use a mac and I was wondering if there was a way to convert unix newlines > in a text file to dos newlines. > > Robert > > > - > B

Convert from unix newlines to dos newlines

2007-08-24 Thread Yoyoyo Yoyoyoyo
Hi all, I use a mac and I was wondering if there was a way to convert unix newlines in a text file to dos newlines. Robert - Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.