Timeline for How to align multiple output of a command into columns
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 28, 2017 at 9:07 | comment | added | WashichawbachaW |
Take a look at the command in bigponumber & asnponumber zgrep -oP 'BIG.[\w\s\d-]*.[\w\s\d]*.[\w\s\d]*.\K[\w\s\d-]*' < $LINE | sort -u. It outputs all the data gathered from the content of $LINE(text.file). Most of the time it has more than a hundred output. That I see is the problem because every output of data prints in default position which is in the left side of the screen.
|
|
| Jul 28, 2017 at 8:17 | comment | added | M4rty | I think the problem is with empty var which do not fill the column, you should ether try to fill blank with other characters or try with a different separator using the -s option | |
| Jul 28, 2017 at 5:26 | comment | added | WashichawbachaW |
I tried it with the code I saw from the example but still, the PO numbers are aligned in the left side of the screen. (printf "ISA GS Trans Sender_ID Receiver_ID INV_PO_NUMBER ASN_PO_NUMBER\n${isa} ${gs} ${trans} ${sender} ${receiver} ${bigponumber} ${asnponumber}\n") | column -t
|
|
| Jul 27, 2017 at 11:35 | history | edited | M4rty | CC BY-SA 3.0 |
added 4 characters in body
|
| Jul 27, 2017 at 10:21 | comment | added | Jeff Schaller♦ | This is in the right direction, but would be much better if it showed at least a minimal working example from the question. | |
| Jul 27, 2017 at 8:50 | history | answered | M4rty | CC BY-SA 3.0 |