2013-11-01 ipアドレスを取得 cmd centos $ ifconfig eth0 | grep -v inet6 | grep inet | awk '{print $2;}' | cut -f2 -d ':'osx % ifconfig en0 | grep -v inet6 | grep inet | awk '{print $2;}'