Changeset 165 for nutchez-0.2/src/test/duplicate_del
- Timestamp:
- Jun 8, 2010, 3:27:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/duplicate_del
r162 r165 11 11 # Delete duplicating ip addresss in file 12 12 IPs=$(cat $1 | grep -v 'ip6' | grep -v '#' | grep -v '^$' | awk '{print $1}') 13 cp -f $1 ${1}.bak 13 14 14 15 for ip_add in $(echo $IPs) … … 30 31 do 31 32 # line numbers 32 host_nu=$(cat -n $1 | grep $host| awk '{print $1}')33 host_nu=$(cat -n $1 | grep "$host\$" | awk '{print $1}') 33 34 host_count=$(echo $host_nu | wc -w) 34 35
Note: See TracChangeset
for help on using the changeset viewer.