Log in

Bekijk de volledige versie : Output format differences between 1.9.2.7-9 and 1.9.2.7-10



Tellus1
31-03-2008, 19:24
I've just upgraded to 1.9.2.7-10. Couldn't help but notice that there's a differently formated output on one of my very useful commands. Namely, issuing:

cons='sed -n '"'"'s%.* src=\(192.168.[0-9.]*\).*%\1%p'"'"' /proc/net/ip_conntrack | sort | uniq -c'

now returns the output in the following format, that is without any alignments whatsoever (don't mind the xx's):
2 192.168.xx.1
228 192.168.xx.2
1 192.168.xx.3
1 192.168.xx.4

whereas before this version it was like:
12 192.168.xx.1
272 192.168.xx.2
1 192.168.xx.3
3 192.168.xx.4
(EDIT: OK, don't know how to show it here correctly - well it was so that the connections number was aligned to the right (a few extra spaces from the left side of the terminal window), and the IP was aligned to the left - so the alignment of both columns was right in the middle).

What could've possibly changed in this version that broke this?

Oleg
31-03-2008, 19:43
Nothing changed in this part...

Tellus1
31-03-2008, 21:15
It's OK now, two reboots seem to have resolved this issue. Weird, though.