Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sentriz/table
https://github.com/sentriz/table
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sentriz/table
- Owner: sentriz
- Created: 2023-08-17T20:46:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-27T17:52:50.000Z (10 months ago)
- Last Synced: 2024-12-11T22:04:58.019Z (22 days ago)
- Language: Go
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme
Awesome Lists containing this project
README
since debian stable's version of column(1) doesn't handle successive delimiters
$ go install go.senan.xyz/table@master
$ printf '%s\t%s\t%s\n' '' b c aaaa b c a bbbbbb c '' '' c | table
b c
aaaa b c
a bbbbbb c
c$ printf '%s\t%s\t%s\n' '' b c aaaa b c a bbbbbb c '' '' c | table '|'
| b | c
aaaa | b | c
a | bbbbbb | c
| | c# works for streams with a flush interval
$ tail -f logs | pick-cols | table : 3
2023 : event one : event param : 53f1a74226358c8c7
2023 : event two : event name is longer : 53f1a74226358c8c7
2023 : event three : event : 53f1a74226358c8c7
2023 : event longer one : event longer param : 53f1a74226358c8c7
2023 : event longer two : event longer name is longer : 53f1a74226358c8c7
2023 : event longer three : event longer : 53f1a74226358c8c7