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
Hello
I changed the script and it works fine.
Thanx for the help :-)
josephine
Robert-Andre Croteau wrote:
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
--
Josephine Tsikoudaki
Systems Administrator
IT Systems & Security Dept.
Vivodi Telecommunications S.A.
62a Ethnikis Antistaseos Str.
GR-15231, Chalandri, Athens, Greece
Tel: +30 2117503866
Fax: +30 2117509581
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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