I want to list the files that exists in both directory A and B,

so that both

A/file_name

B/file_name

exist.

How to do that?

link|improve this question
Look at [this][1] question [1]: serverfault.com/questions/39534/… – Selivanov Pavel Oct 18 '11 at 11:33
feedback

1 Answer

Try this:

$ comm -12 <(ls A) <(ls B)
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.