Changeset 1100


Ignore:
Timestamp:
Apr 24, 2009, 12:31:35 PM (14 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.