-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
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
Reactions are currently unavailable