]> git.ipfire.org Git - thirdparty/util-linux.git/commit
column: add --table-columns-limit
authorKarel Zak <kzak@redhat.com>
Tue, 25 Aug 2020 12:15:36 +0000 (14:15 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Aug 2020 12:15:36 +0000 (14:15 +0200)
commitea160a2befce92c6e2cb07831ba84a253317327c
treebbdc1a1de242ba1e0d73596924f46a50c444164b
parent816c5754f25641b496841f41cd2723cc6c447b7a
column: add --table-columns-limit

$ echo -e 'AAA:BBB:CCC:DDD\n' | ./column -t -s ':'
AAA  BBB  CCC  DDD

$ echo -e 'AAA:BBB:CCC:DDD\n' | ./column -t -s ':' -l 2
AAA  BBB:CCC:DDD

$ echo -e 'AAA:BBB:CCC:DDD\n' | ./column -t -s ':' -l 3
AAA  BBB  CCC:DDD

Addresses: https://github.com/karelzak/util-linux/issues/1124
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/column.1
text-utils/column.c