[wplug] searching lots of dirs?

Petrucci, Joseph Joseph.Petrucci at ddiworld.com
Tue May 10 00:35:16 EDT 2005


to search for a dot file ".foo" try
 
find . -name \.foo*
 
Joseph A. Petrucci
E Systems DBA
------------------------------------------------
Desk: 412-220-2646
Cell: 412-916-2867
Text message (e-mail) 4129162867 at mobile.att.net
e-mail joseph.petrucci at ddiworld.com
Personal Cell: 724-462-0443
Personal e-mail: japetrucci at hotmail.com

________________________________

From: wplug-bounces+joseph.petrucci=ddiworld.com at wplug.org on behalf of Sal Mangiapane
Sent: Mon 5/9/2005 10:31 PM
To: General user list
Subject: Re: [wplug] searching lots of dirs?




>>How do I search for dotfiles with find? I tried locate and it didn't
>>find anything. I am searching dirs in AFS so I tried `find . -name
>>"*foo*" -print -noleaf` and it still seems to only be searching 1
>>level. ???
>>   
>>

Why not:

find .  | grep foo

You can add "-type f" because use said files and the "-print" is optional:

find . -type f -print | grep foo

Sal
_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20050510/fc090457/attachment.html


More information about the wplug mailing list