$ cat FILE_A
string1
foo
bar
string400
$ cat FILE_C
string1
string400
$ grep -v -f FILE_C FILE_A > FILE_B
$ cat FILE_B
foo
bar
---------
$ grep -V
grep (GNU grep) 2.5.1
Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|