commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
works on Linux and Solaris. I think it will work on nearly all *nix-es
There are 5 alternatives - vote for the best!
Fetches the IPs and ONLY the IPs from ifconfig. Simplest, shortest, cleanest.
Perl is too good to be true...
(P.S.: credit should go to Peteris Krumins at catonmat.net)
If you can do better, submit your command here.
You must be signed in to comment.