2010-03-30から1日間の記事一覧
#!/bin/sh #getconnect.sh ipaddress=$(expr $1 : '\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.\).*') startip=$(expr $1 : '.*\.\([0-9]\{1,3\}\)$') stopip=$2 if [ $# -ne 2 ]; then echo "Usage: getconnect.sh startIPaddress EndIPaddress" exit 1 …