On Sun, 2003-09-21 at 04:23, bob bob wrote:
> Thanks guys.. this:
> find /lib/modules/*/kernel/* -type f -printf "%f\n" |sed 's/.o//g' >> 
> /etc/modules.autoload.d/kernel-2.4
> 
> seems to work a treat..
> although I have NFI what
> "%f\n" |sed 's/.o//g'
> 
> is or does.. it all seems to work :-)
> 
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*. 
> http://join.msn.com/?page=features/featuredemail
> 
> 
> --
> [EMAIL PROTECTED] mailing list

As best I can  in plain English off the top of my head:

"%f\n" means output what we found followed by a newline

sed 's/.o//g' means to replace every occurrence of .o with nothing (ie
remove it)

The sed line can be greatly improved by "anchoring" the .o to the end of
the line.  Then it would perform the substitution (s/ means substitute)
IFF the .o is at the end of the line.  The /g part means globally
replace.

I know that this email is poorly written.  Hope it helps because its the
best you are gonna get from me at 0430 :)


-- 
Owen Ford <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to