RE: Unix to dos; dos to unix...

2002-04-25 Thread Collins, Joe (EDSI\\BDR)
: Re: Unix to dos; dos to unix... Hi There, Just a small addition on the remarks : I don't know if you realy want this to automate, but "vi" can do it as well. Just type : :1,$s/[Ctrl + v] [Ctrl + m]//g The [Ctrl + v] makes you able to type in an escape character. Most of al

Re: Unix to dos; dos to unix...

2002-04-25 Thread David vd Geer Inhuur tbv IPlib
Hi There, Just a small addition on the remarks : I don't know if you realy want this to automate, but "vi" can do it as well. Just type : :1,$s/[Ctrl + v] [Ctrl + m]//g The [Ctrl + v] makes you able to type in an escape character. Most of all the [Ctrl + m] (^M) is bothering you. :) I know,

Re: Unix to dos; dos to unix...

2002-04-25 Thread Gary Stainburn
On Thursday 25 April 2002 3:08 pm, Ron Powell wrote: > There is a utility out there that will convert unix-style end-of-lines (LF) > to dos-style (CR/LF)... > > Just for giggles, I'm trying to write a perl script to do this... > > Here's what I've tried... > > while () { > $line = $_; >

Re: Unix to dos; dos to unix...

2002-04-25 Thread Felix Geerinckx
on Thu, 25 Apr 2002 14:08:12 GMT, [EMAIL PROTECTED] (Ron Powell) wrote: > The same input file, when converted using the unix utility > unix2dos, converts "properly." This leads me to believe that I'm > missing something obvious here You need 'binmode': perldoc -f binmode > I'm

Re: Unix to dos; dos to unix...

2002-04-25 Thread Ahmed Moustafa
Ron Powell wrote: > There is a utility out there that will convert unix-style end-of-lines (LF) > to dos-style (CR/LF)... > > Just for giggles, I'm trying to write a perl script to do this... > > Here's what I've tried... > > while () { > $line = $_; > $line=~tr/\012/\015\012/; >

Re: Unix to dos; dos to unix...

2002-04-25 Thread Tirthankar C. Patnaik
hi Ron, another unix command is flip. i've written a small perl script that converts a dos file to a unix one. as you can see, i've just substituted the \r\n with a \n. the reverse can easily be done. this is a working example. it's not fast, but workable. i'd welcome a

RE: Unix to dos; dos to unix...

2002-04-25 Thread Bob Showalter
> -Original Message- > From: Ron Powell [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 10:08 AM > To: '[EMAIL PROTECTED]' > Subject: Unix to dos; dos to unix... > > > There is a utility out there that will convert unix-style > en

RE: Unix to dos; dos to unix...

2002-04-25 Thread Nikola Janceski
unix2dos and dos2unix is what you are looking for. I tried with perl also and was unsucessful also for same reason. > -Original Message- > From: Ron Powell [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 10:08 AM > To: '[EMAIL PROTECTED]' > Subject:

Unix to dos; dos to unix...

2002-04-25 Thread Ron Powell
There is a utility out there that will convert unix-style end-of-lines (LF) to dos-style (CR/LF)... Just for giggles, I'm trying to write a perl script to do this... Here's what I've tried... while () { $line = $_; $line=~tr/\012/\015\012/; print OUTFILE ("$line\n");