BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} bb-local.sh sort failing in fedora core 5



Lee Engel - MWEB wrote:
Hi Josephine,

I had the same problem with bb-disk, you need to change the shell script
to use -k instead of the +, eg.: sort +4 changes to sort -k 4.

actually, I believe it should be -nk 5


when sort +4 was used, the initial index was 0 thus (5th column - 1 = 4) to sort the % column. under fedora (and probably all Linux OSes) the index starts at 1. The 'n' is added because we want a numerical sort and setting it to only -k 5 would have 54 precede 8, not good :)

bye
--
Robert-Andre Croteau    BSD,MOTU
Quest Software, Inc.            Big Brother, Product Architect
http://www.quest.com/                          http://bb4.com/
+1 (514) 238-9374
        Si le bonheur ne s'achete pas alors louez le.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index