RE: need a prg like dos2unix

1999-05-06 Thread Manager
To: 'Shane Kerr' Cc: '[EMAIL PROTECTED]' Subject: RE: need a prg like dos2unix Or you could substitute "filename" for your file cat filename | tr -d '\15' newfilename -Original Message- From: Shane Kerr [mailto:[EMAIL PROTECTED]] Sent:

need a prg like dos2unix

1999-04-28 Thread linux
Someone mentioned one last week, but I dont remember the name of the program. Basically need a prg that strips the ^M and other MS crap from txt files Thanks -John

Re: need a prg like dos2unix

1999-04-28 Thread Shane Kerr
On Wed, 28 Apr 1999, linux wrote: Someone mentioned one last week, but I dont remember the name of the program. Basically need a prg that strips the ^M and other MS crap from txt files You don't need a special program for this. Try: perl -pe 's/\r$//' input output Perl is fun! Whee!!!

Re: need a prg like dos2unix

1999-04-28 Thread Jonathan Hall
I always just use joe, although any text editor would work. I do a search and replace, replacing ^M with nothing. On Wed, 28 Apr 1999, linux wrote: Someone mentioned one last week, but I dont remember the name of the program. Basically need a prg that strips the ^M and other MS crap from

RE: need a prg like dos2unix

1999-04-28 Thread Molenda, Mark P
Or you could substitute "filename" for your file cat filename | tr -d '\15' newfilename -Original Message- From: Shane Kerr [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 28, 1999 10:39 AM To: linux Cc: Mailing List Subject: Re: need a prg like dos2unix On Wed, 2

RE: need a prg like dos2unix

1999-04-28 Thread Klas Axelsson
Where is also a ^Z at the end of the file, that you may want to get rid of. /Klas -Original Message- From: Molenda, Mark P [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 28, 1999 4:48 PM To: 'Shane Kerr' Cc: '[EMAIL PROTECTED]' Subject: RE: need a prg like dos2unix

OFF-TOPIC Re: need a prg like dos2unix

1999-04-28 Thread Shane Kerr
Sorry for the off-topic post, but I did feel the need to defend myself. :) #define FLAME_ON On Wed, 28 Apr 1999, Matthew Kirkwood wrote: On Wed, 28 Apr 1999, Shane Kerr wrote: You don't need a special program for this. Try: perl -pe 's/\r$//' input output Perl is fun! Whee!!!

Re: OFF-TOPIC Re: need a prg like dos2unix

1999-04-28 Thread Brian D Chase
Here... let me drag us even further off course. On Wed, 28 Apr 1999, Shane Kerr wrote: Sorry for the off-topic post, but I did feel the need to defend myself. :) [snip] kerr@bang [~/work]time tr -d '\15' shani.tmp2 /dev/null real0m2.925s user0m2.603s sys 0m0.283s