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
comm -23 <(ls -w 1 /path1 | sort) <(ls -w 1 /path2 | sort)
Please Login to reply.
Very nice!