On 3/22/00 18:30, Steve Youngs at [EMAIL PROTECTED] wrote:

> 
>* 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. :)

To be perfectly candid, neither do I. :-)  (And awk is taking some 
getting used to also!)

When I looked at your script again and understood that you were using tr, 
it seemed to me to be the better choice.

>
>Thanks for the idea
>

Right back atcha.

Cheers,

Sean


                 T. Sean (Theo) Schulze
[EMAIL PROTECTED]           [EMAIL PROTECTED]
***************************************************
Your representative owes you, not his industry only, but
his judgement; and he betrays, instead of serving you, if
he sacrifices it to your opinion. -- Edmund Burke



-
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