1
I have a list of 2000 files from a database that looks like this:
./aa/0f/unique-string/IMG_0987.JPG
./ab/cf/unique-string/IMG_0987.JPG
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?
Pls take a look at my answer, for a faster solution. – MariusMatutiae – 2015-06-26T09:15:48.567