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
diff <(find /path1 -type f -printf "%P\n") <(find /path2 -type f -printf "%P\n")
Please Login to reply.
Interesting use of diff for this