0

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?

linux
  • 1
  • 1

1 Answers1

2

Try this:

$ comm -12 <(ls A) <(ls B)
quanta
  • 51,413
  • 19
  • 159
  • 217