I have a file called
files.txt which contains some file names inside. I have a command that reads this file and execute a
find to return to me which file names it has found. I'd like to know how can I do the opposite, what I want is to show what file names it did NOT find.
$ ls file1 file2 file3 files.txt $ cat files.txt file1 file2 file3 file4 $ while read x; do (find . -iname "$x"); done < files.txt ./file1 ./file2 ./file3
In this example, I want it to show
file4 in the results, because this file name is in the .txt, but it does not exist in the folder.