5 not - print lines that are present in one file but not another
11 not [file|-] [file|-] ...
15 B<not> reads the specified files and prints out the lines that are present
16 in the first but not in subsequent files. Use "-" to make it read a file
17 from standard input. If only one file is specified, B<not> first reads
18 standard input, and compares it with the specified file.
22 Copyright 2006 by Joey Hess <joey@kitenet.net>
24 Licensed under the GNU GPL.
32 die "usage: not [file|-] [file|-] ...\n";
42 foreach my $fn (@ARGV) {
43 open (IN
, $fn) || die "and: read $fn: $!\n";
52 open (IN
, $first) || die "and: read $first: $!\n";
55 print "$_\n" if ! $seen{$_};