2011/01/06

Just a fastliner

interfaceips=$(ifconfig -a| grep "inet addr" | sed 's/\s\+/ /g;s/^\s\+//;s/^inet addr://' | cut -f1 -d" ")
for ip in $interfaceips
do
echo "scp $(whoami)@$ip:$(pwd)/$1"
done

No comments:

Post a Comment