How to use locate and exclude certain strings?

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: joe@actionline.com
Dátum:  
Címzett: plug-discuss
Tárgy: How to use locate and exclude certain strings?
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?


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