How to use locate and exclude certain strings?

joe at actionline.com joe at actionline.com
Tue Dec 23 14:20:49 MST 2014


I use the following command to locate all files that contain a specified 
string (i.e. $FILE) within a specified directory:

locate $FILE | fgrep -ya "/home/joe/mydata"

How can I modify that command to do the same thing, except exclude all 
paths that contain another specified string?




More information about the PLUG-discuss mailing list