Skip to content

Explore: tpretty implementation in awk? #13

@pavlov99

Description

@pavlov99

At the moment pretty table print is implemented in python. The program reads the whole input twice: one to calculate column widths and the second time to actually print.

Is it possible to implement such functionality in bash with reasonable limitations (e.g. header manipulation)?

See
https://superuser.com/questions/557256/reading-the-same-stdin-with-two-commands-in-bash

command1 source | tee >(command2) >(command3)

https://stackoverflow.com/questions/10218103/os-x-linux-pipe-into-two-processes

echo "Leeroy Jenkins" | tee >(md5sum > out1) >(sha1sum > out2) > out3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions