Unix diff command to find the minus of two text files
Posted on 2014-03-17
I want to print the content of file 1a that are not present in the file 1b. Both files contain one line of similar pattered text.
$ cat 1a
$ cat 1b
$ grep -vf 1a 1b
$ grep -vf 1b 1a shows those present in 1a but not in 1b. And it works perfectly, But when the files are big (1000K+ records each), the above diff command hangs. Could you suggest workaround or alternate solution that might work? Thanks you.