I'm running on freebsd -- with a default shell of csh.
I have two files named A and B. Each line of each file contains a file name. How can I write a script that removes all the file names in file B from A.
I tried to use perl to create a huge regular expression with "|" separating the file names in file A and then use sed to delete those from A. I could not make that work. I just could not get "sed -f re <A >AA" to cooperate (no errors no changes from A to AA). Is there an easier way?
Thanks,
Siegfried