Re: How to remove ,cr and ^M.

1998-06-23 Thread Ignacio Rodriguez
Dave Reed wrote: Do you know where I could find the source code of dos2unix and unix2dos? Just to know how they work and what they can and cannot do. Thank you. They're probably Perl or some other script language so you can just use can look at them. No, they are ELF compiled

Re: How to remove ,cr and ^M.

1998-06-23 Thread Dave Reed
From: Ignacio Rodriguez [EMAIL PROTECTED] Dave Reed wrote: Do you know where I could find the source code of dos2unix and unix2dos? Just to know how they work and what they can and cannot do. Thank you. They're probably Perl or some other script language so you can just use

Re: How to remove ,cr and ^M.

1998-06-22 Thread Ignacio Rodriguez
Dave Parker wrote: If you're alredy looking for dos2unix command it is in redhat's contrib directory! You might also take a look at /usr/bin/tr. -- Do you know where I could find the source code of dos2unix and unix2dos? Just to know how they work and what they can and cannot do. Thank

Re: How to remove ,cr and ^M.

1998-06-22 Thread Dave Reed
Resent-Cc: recipient list not shown:;@redhat.com Mbox-Line: From [EMAIL PROTECTED] Mon Jun 22 18:42:55 1998 Date: Tue, 23 Jun 1998 00:19:33 +0200 From: Ignacio Rodriguez [EMAIL PROTECTED] Dave Parker wrote: If you're alredy looking for dos2unix command it is in redhat's contrib

Re: How to remove ,cr and ^M.

1998-06-18 Thread James Youngman
"mt" == Mauricio Teixeira [EMAIL PROTECTED] writes: mt On Wed, 17 Jun 1998, Sim Robert wrote: After I transferred some text files from DOS to Linux, I discovered that there is a cr or ^M after each line. How do I remove those cr quickly, instead of doing so one by one. mt Use

Re: How to remove ,cr and ^M.

1998-06-18 Thread Iztok Polanic
Hello !!! On 18 Jun 1998, James Youngman wrote: AFAIK it is not included with Red Hat 5.0. Here is a shell script which I use in its place:- If you're alredy looking for dos2unix command it is in redhat's contrib directory!

Re: How to remove ,cr and ^M.

1998-06-18 Thread Dave Parker
Iztok Polanic wrote: Hello !!! On 18 Jun 1998, James Youngman wrote: AFAIK it is not included with Red Hat 5.0. Here is a shell script which I use in its place:- If you're alredy looking for dos2unix command it is in redhat's contrib directory! You might also take a look at /usr/bin/tr.

Re: How to remove ,cr and ^M.

1998-06-18 Thread Mauricio Teixeira
On Wed, 17 Jun 1998, Sim Robert wrote: After I transferred some text files from DOS to Linux, I discovered that there is a cr or ^M after each line. How do I remove those cr quickly, instead of doing so one by one. Use the command "dos2unix"...

How to remove ,cr and ^M.

1998-06-17 Thread Sim Robert
Hi there, After I transferred some text files from DOS to Linux, I discovered that there is a cr or ^M after each line. How do I remove those cr quickly, instead of doing so one by one. Thanks. -- PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!

Re: How to remove ,cr and ^M.

1998-06-17 Thread Rick L. Mantooth
Sim, cat filename | sed 's/^M//g' newfilename Where ^M is ^V^M (Ctrl+vCtrl+m) [means Insert Special Character ^M] If you have a lot and they are the only files in the directory: for file in `/bin/ls -1`# Stays away from "ls aliases" do echo "Doing $file" cat $file | sed 's/^M//g'

Re: How to remove ,cr and ^M.

1998-06-17 Thread Dave Reed
Resent-Cc: recipient list not shown:;@redhat.com Mbox-Line: From [EMAIL PROTECTED] Wed Jun 17 15:08:18 1998 Comments: Authenticated sender is [EMAIL PROTECTED] From: "Sim Robert" [EMAIL PROTECTED] Organization: AA Date: Wed, 17 Jun 1998 12:14:29 + Mime-Version: 1.0 Content-Type: