1

awk or sed: change the color of a column w/o screwing up column spacing

view story
linux-howto

http://www.unix.com – Hey folks. I wrote a little awk script that summarizes /proc/net/dev info and then pipes it to the nix column command to set up column spacing appropriately. Here's some example output: Code:   Iface  RxMBytes  RxPackets  RxErrs  RxDrop  TxMBytes  TxPackets  TxErrs  TxDrop   bond0  9        83830      0      0      12        62866      0      0   eth0    1        18689  &nbsp (HowTos)