I have some columnized data which I would like to format a little further. It looks like this:
$ getStats | grep ESTABLISHED | column -t all tcp 18.104.22.168:80 <- 10.42.100.211:63752 ESTABLISHED:ESTABLISHED all tcp 10.42.120.201:63752 -> 22.214.171.124:31180 -> 126.96.36.199:80 ESTABLISHED:ESTABLISHED all tcp 188.8.131.52:443 <- 10.42.100.117:59999 ESTABLISHED:ESTABLISHED
Essentially before I call
column -t I want to move the TCP state, 'ESTABLISHED:ESTABLISHED' further on the first and third line so that it is correctly placed with the second line. How would I go about this? Using awk and printf seem a bit messy here. Essentially I want to align all columns and right-align just the last column.