X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=ips;h=031cf0b42a93d46a34c903f71a0796b569e512db;hb=29eba1c7c9c39f5c93c6355ea1018b4d37f1af57;hp=0feffca5b5c9af9fa7e3bd00d8b3997d7f71e73e;hpb=3fa8a2d25696bd8d57697615586a39481abb8386;p=dell-switch diff --git a/ips b/ips index 0feffca..031cf0b 100755 --- a/ips +++ b/ips @@ -1,3 +1,4 @@ COLS=1 test ! -z "$1" && COLS=$1 +test "`basename $0`" == "hosts" && COLS=1,2 ls log/*.log | cut -d/ -f2 | cut -d_ -f$COLS | sed 's/\./ /g' | sort -n -k 4 -u | sed -e 's/ /./g' -e 's/_/ /g'