Skip to main content
edited body
Source Link
Martin Geisler
  • 73.5k
  • 25
  • 173
  • 229
comm -23 <(ls dir1 |sort) <(ls dir2|sort)

This command will give you files those are in dir1 and not in dir2.

About '<( )'<( ) sign, you can google it as 'process substitution'.

comm -23 <(ls dir1 |sort) <(ls dir2|sort)

This command will give you files those are in dir1 and not in dir2.

About '<( )' sign, you can google it as 'process substitution'.

comm -23 <(ls dir1 |sort) <(ls dir2|sort)

This command will give you files those are in dir1 and not in dir2.

About <( ) sign, you can google it as 'process substitution'.

Source Link
plhn
  • 5.2k
  • 4
  • 49
  • 49

comm -23 <(ls dir1 |sort) <(ls dir2|sort)

This command will give you files those are in dir1 and not in dir2.

About '<( )' sign, you can google it as 'process substitution'.