[olug] Unix Tip: GET YOUR IP-ADDRESS

mØntar3 m0ntar3 at cox.net
Fri Mar 21 04:23:28 UTC 2003


Note: The semi-colons in the awk statements are not required.

William E. Kempf wrote:

>Unix Guru Universe said:
>  
>
>>Type this simple command at the unix-prompt
>>
>>ifconfig | grep "inet addr" |  grep -v "127.0.0.1" | awk '{print $2;}' |
>> awk -F':' '{print $2;}'
>>    
>>
>
>*chuckles*
>
>While as a developer I love the power behind these "little tools piped
>together", it's exactly this sort of attitude ("Type this _simple_
>command", emphasis mine) which continues to lead me to think Linux is for
>the Gurus, and not Mom and Pop.
>
>  
>



More information about the OLUG mailing list