Changeset 1100 for noc


Ignore:
Timestamp:
Apr 24, 2009, 12:31:35 PM (15 years ago)
Author:
quentin
Message:
Remove duplicate hostnames from the regex filter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • noc/nagios/status-user/finger.sh

    r1099 r1100  
    1818
    1919gethgmembers() {
    20     gethostgroups | grep "^$1   " | cut -f 2 -d "       " | sed 's/,/\n/g' | perl -pe 's/\n/|/g' | sed 's/|$//'
     20    gethostgroups | grep "^$1   " | cut -f 2 -d "       " | sed 's/,/\n/g' | sort -u | perl -pe 's/\n/|/g' | sed 's/|$//'
    2121}
    2222
Note: See TracChangeset for help on using the changeset viewer.