> > According to you: > > > > [text deleted] > > > > on a unix system you can type : cat <file> | tr -d '\015' > <newfile> > > and all the ^Ms are gone. > > On some unix systems(like sunos) you also got a command called d2u > > which also removed them.(dos to unix). > > > > regards, Harald > > > > But who wants to do that for 200+ files? I wrote a script to do it: > > Assuming you are using CSH or TCSH: > > foreach FILE in (*) > cat $FILE | sed 's/ //g' > $FILE.new > end > > -- > mshapiro@explorer.csc.com > God doesn't believe in Atheists - Matthew 12:30 > GCS p c++++ l+ u+ e+ m+ s n- h f+ !g w+++ t-- r y? > well, was just giving out the basics. Should have posted it to the list I guess most people SHOULD be able to write such a script anyways. btw: the script would look like this in SH/BASH: for file in *; do cat $FILE | tr -d '\015' > $FILE.new done regards, Harald
This archive was generated by hypermail 2b30 : 12/07/00 PST