Scripting question ...

Inizio della pagina
Allegati:
Messaggio come e-mail
+ (text/plain)
Delete this message
Reply to this message
Autore: joe@actionline.com
Data:  
To: plug-discuss
Oggetto: Scripting question ...
How can I exclude a specified directory (or perhaps more than one)
from a 'locate' search for files containing a certain name or word
on my system?

For example, I frequently now use the following:

$ locate filename | fgrep -ya "/home/joe" <E>

How could I modify that to exclude all files with the specified
filename in one (or more) specified subdirectories?



---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss