Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    This is in the right direction, but would be much better if it showed at least a minimal working example from the question. Commented Jul 27, 2017 at 10:21
  • 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 Commented Jul 28, 2017 at 5:26
  • 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 Commented Jul 28, 2017 at 8:17
  • 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. Commented Jul 28, 2017 at 9:07