On Wed, 22 Mar 2000,  Steve Youngs wrote about,  Re: shell script question:
> * Theo  <T.> writes:
> 
> > Why not do something like:
> 
> > for file in `ls thedirectorythefilesarein`
> >      do `sed -e s/\^M/\^J/ < $file > tmpfile` ; 
> >      mv $tmpfile $file
> >      done
>      
> No reason at all except I don't know a great deal about sed. :)

I "didnt" quite understand sed either untill i took a gander at;

http://www.cornerstonemag.com/sed/sed1line.txt

It has examples for this sort of thing.
I did have another URL which contained a very good manuel, one i could
even understand, but, jep you guessed, i have missplaced it. Maybe it can
be retreived from the above URL.


> Thanks for the idea
> 

-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to