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
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
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
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
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.