LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] searching multiple directories

[ILUG] searching multiple directories

kevin lyda kevin at suberic.net
Fri Aug 27 10:10:26 IST 1999


valen at tuatha.org spoke thusly:
>On Thu, Aug 26, 1999 at 04:51:06PM +0100, Padraig Brady mentioned:
>> > Maybe rgrep -r is what you want.
>> find . -name '*' | xargs grep "word"
>
> Right. What's the story with xargs. What's wrong with;
>
>$ grep word `find . -name '*' `
>
> I've **never** had to use xargs....

<begin grandpa mode>

back in my day i worked on sunos and sco boxes.  both has obscenely small
limits to the size of the environment and commandline - sco being the
worst.  in fact, it was sco's commandline length limits that drove me
to linux to begin with.

you lucky youngsters with your multi-megabyte argv's and environ's.

<insert reindeer running over grandpa>
</end grandpa mode>

and what's with this -name '*' directive to find.  why run find on dirs?
what's wrong with -type f?  not only does it just feed grep files, it's
two, count 'em, two less chars!

kevin "doritos for breakfast make me feisty!" lyda




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell