I am trying to look at files in a directory and compare that list of files with a list I have in file.
So compare ls -1 output with a file called allfiles.lst and tell me if any are missing from the ls -1 listing. I just run ls -1 > current then compare current with allfiles.lst.
I've tried grep -f , but it tells me what does match.
Diff's output is a bit awkward to work with since they may not always match in the same order.
Sdiff is better, but I'm having a problem understanding it's output.
So compare ls -1 output with a file called allfiles.lst and tell me if any are missing from the ls -1 listing. I just run ls -1 > current then compare current with allfiles.lst.
I've tried grep -f , but it tells me what does match.
Diff's output is a bit awkward to work with since they may not always match in the same order.
Sdiff is better, but I'm having a problem understanding it's output.