4 ms·
Neat. I'll add this to my toolbox. Somewhat unrelated: I discovered some time ago that the column command (from util-linux) can print trees of hierarchical dat
by mklein994 6y ago
Neat. I'll add this to my toolbox.
Somewhat unrelated: I discovered some time ago that the column command (from util-linux) can print trees of hierarchical data (up to 2 levels deep).
From the man page:
$ echo -e '1 0 A\n2 1 AA\n3 1 AB\n4 2 AAA\n5 2 AAB' | column --tree-id 1 --tree-parent 2 --tree 3
1 0 A
2 1 |-AA
4 2 | |-AAA
5 2 | `-AAB
3 1 `-AB
column(1): https://github.com/karelzak/util-linux/blob/master/text-utils/column.1.adoc#examples https://github.com/karelzak/util-linux/blob/master/text-util...
- birchb 6y agoI did not know that. But then it's BSD, right? http://harmful.cat-v.org/cat-v/ http://harmful.cat-v.org/cat-v/.