5 and - print lines that are present in one file and another
11 and [file|-] [file|-] ...
15 B<and> reads the specified files and prints out the lines that are common
16 to all files, in the order they are listed in the last file. Use "-" to
17 make it read a file from standard input. If only one file is specified,
18 B<and> first reads 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: and [file|-] [file|-] ...\n";
40 foreach my $fn (@ARGV) {
41 open (IN
, $fn) || die "and: read $fn: $!\n";
45 if ($seen{$_} == @ARGV) {