tigbit

Website design and hosting with email accounts.

Shell Scripts
Tuesday, 04 May 2010 16:51

wlspider.ksh

 

getipinfo.bsh

 

awk '{print $2}' netstat_total > foreign

awk -F. '{if ($NF < 10000) print $0}' foreign | sort | uniq

and to cope with service names in the ports -

awk -F. '{if (length($NF) < 5) print $0}' local | sort | uniq

and to check this also check for column's that don't contain digits

awk -F. '{if ($NF !~ /^[0-9]+$/) print $0}' local | sort | uniq

Last Updated on Tuesday, 06 July 2010 16:45