Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi Daniel (if that's your real name). Welcome to LinuxQuestions!
The -v flag to grep inverts your search. Grep output can be sent to another grep for further filtering. So, to find all files with a name containing martin excluding /home/daniel, you would write
# find / -user daniel | grep -v /home/daniel | grep martin
This is maybe not the answer to your question, but might be valid anyway. If you search with 'find' and 'grep', I don't think that the CPU but the disk transfer speed is what's holding you back. Just listen to the poor HDD when you use find!
<<<find / \( -type d -regex "/home/daniel" -prune \) -o -user daniel -print >>>
yes he got lucky.
the above expression means find /home/daniel, but do not traverse the directory tree, (which means /home/daniel will be added to the results) or (-o) find everything from user daniel
based on the origional question, i would do this
find / ! \( -wholename '/home/daniel*' -o -wholename /backup* -o -wholename /etc/etc/ifyouknowwhatimean \) -print
Last edited by bwachidotcom; 12-04-2010 at 11:04 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.