[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c++

Comparing two lists from "find" and excluding matches

C++ Newbie

10/14/2008 2:35:00 PM

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.
1 Answer

Richard Herring

10/14/2008 3:12:00 PM

0

In message
<2b9e162c-4aad-401d-a7b7-609774a63aed@64g2000hsm.googlegroups.com>, C++
Newbie <newbie.cpp@googlemail.com> writes
>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