Scripting question ...

joe at actionline.com joe at actionline.com
Sun Mar 8 10:22:55 MST 2015


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?





More information about the PLUG-discuss mailing list