(Video materials in preparation)
taglineup : Returns the unique data in the specified field in
ascending order
Usage : taglineup [-f] <f1> <f2> ... <file>
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 1
Reads the data in the specified field of <file> and outputs unique
values as a "lineup" in ascending order.
If <file> is omitted or specified as "-" the command reads from
standard input.
$ cat data
T1 T2 T3 T4
1 1 717300 abc1
1 2 717301 abc2
1 3 717302 abc3
1 1 717303 abc4
1 2 717304 abc5
2 0 717305 abc6
2 2 717306 abc7
2 2 717307 abc8
3 4 717308 abc9
3 4 717309 abcA
3 4 717310 abcB
$ taglineup T2 data
T2
0
1
2
3
4
If multiple fields are specified, the specified fields are joined,
then sorted and output together as a lineup.
$ taglineup T1 T2 data
T1 T2
1 1
1 2
1 3
2 0
2 2
3 4
You can specify continuous fields.
$ taglineup T1/T2 data
T1 T2
1 1
1 2
1 3
2 0
2 2
3 4