Crates.io | tabwriter-bin |
lib.rs | tabwriter-bin |
version | 0.2.1 |
source | src |
created_at | 2018-10-02 22:38:48.3411 |
updated_at | 2020-01-12 13:40:55.309002 |
description | Command line tool for elastic tabstops. |
homepage | https://github.com/BurntSushi/tabwriter |
repository | https://github.com/BurntSushi/tabwriter |
max_upload_size | |
id | 87707 |
size | 10,142 |
Simple example of command line utility
[andrew@Liger tabwriter] cat sample | sed 's/ /\\t/g'
a\tb\tc
abc\tmnopqrstuv\txyz
abcmnoxyz\tmore text
a\tb\tc
[andrew@Liger tabwriter] ./target/tabwriter < sample
a b c
abc mnopqrstuv xyz
abcmnoxyz more text
a b c
Notice that once a column block is broken, alignment starts over again.