(Video materials in preparation)
and : Outputs the field values that all files share in common in
the first field.
Usage : and <files>...
and +f <file>
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 1
Outputs to stdout the values that the all specified files have
in common in the first field.
All specified files must be sorted on the first field.
File names are read from <file> when +f option is specifed. if "-" is
specified as <file> or omitted <file>, stdin is read instead.
$ cat data1
3 Mid_Atlantic
4 Midwest
6 Central
7 Gulf_Coast
9 Hawaii
$ cat data2
1 Alaska
2 Northeast
4 Midwest
5 Southeast
7 Gulf_Coast
9 Hawaii
$ cat data3
4 NewYork
7 Georgia
$ cat filenames
data1
data2 data3
$ and data1 data2 data3
4
7
$ and +f filenames
4
7