I have a list of 2000 files from a database that looks like this:
I want to compare that list to the actual directory contents in order to identify missing files.
The following command works individually, but not when I script it...
find . -false -samefile ./ab/cf/unique-string/IMG_0987.JPG
The closest I have come is the following:
#!/bin/bash TEST=`cat ./list.lst` find . -false -samefile "$TEST"
I am doing it wrong. what is the right way?