/ Published in: Bash

Expand |
Embed | Plain Text
ifconfig | sed -n "/en0/,/netmask/ p" | grep "inet " | awk '{print$2}' copy to .bash_profile: alias getip='ifconfig | sed -n "/en0/,/netmask/ p" | grep "inet " | awk ''{print\$2}'''
You need to login to post a comment.