Ignore:
Timestamp:
Jun 8, 2010, 3:27:23 PM (15 years ago)
Author:
rock
Message:

管理介面初版完成

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/duplicate_del

    r162 r165  
    1111# Delete duplicating ip addresss in file
    1212IPs=$(cat $1 | grep -v 'ip6' | grep -v '#' | grep -v '^$' | awk '{print $1}')
     13cp -f $1 ${1}.bak
    1314
    1415for ip_add in $(echo $IPs)
     
    3031do
    3132    # line numbers
    32     host_nu=$(cat -n $1 | grep $host | awk '{print $1}')
     33    host_nu=$(cat -n $1 | grep "$host\$" | awk '{print $1}')
    3334    host_count=$(echo $host_nu | wc -w)
    3435 
Note: See TracChangeset for help on using the changeset viewer.