Scripting question ...

Page principale
Attachements:
Message en tant que courrier électronique
+ (text/plain)
Supprimer ce message
Répondre à ce message
Auteur: joe@actionline.com
Date:  
À: plug-discuss
Sujet: 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