By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,313 Members | 1,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,313 IT Pros & Developers. It's quick & easy.

Comparing two lists from "find" and excluding matches

P: n/a
I want to recursively search for subdirectories containing filename1
only, but not filename1 & filename2.

I tried using the following csh command but it doesn't work:

find ./ -name d3hsp | sed 's/filename1//' | grep -v `find ./ -name
d3kil | sed 's/filename2//'`

Any suggestions?

Thanks.
Oct 14 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In message
<2b**********************************@64g2000hsm.g ooglegroups.com>, C++
Newbie <ne********@googlemail.comwrites
>I want to recursively search for subdirectories containing filename1
only, but not filename1 & filename2.

I tried using the following csh command but it doesn't work:

find ./ -name d3hsp | sed 's/filename1//' | grep -v `find ./ -name
d3kil | sed 's/filename2//'`

Any suggestions?
Ask in a Unix newsgroup?

--
Richard Herring
Oct 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.