Global Feed Post Login
Replying to Avatar Nice and Kind Vic

Listing filenames present in one directory that dont exist in another:

ls -w 1 /path1 | grep -vxFf <(ls -w 1 /path2)

Got a better way? Reply below and I'll #zap you

#asknostr #plebchain #midnightoil

Avatar
techjunkie 2y ago

comm -23 <(ls -w 1 /path1 | sort) <(ls -w 1 /path2 | sort)

Reply to this note

Please Login to reply.

Discussion

Avatar
Nice and Kind Vic 2y ago

Very nice!

Thread collapsed