[ale] Get host's IP address as an unprivileged user?

Lightner, Jeff JLightner at water.com
Wed Jun 8 10:25:40 EDT 2011


If you can't dazzle people with brilliance baffle them with BS.

Train your newbies that the proper way to see the size of the root
filesystem is:

df -h / |awk '{print $0}'|cat |tr \000 \000 |sed -e s/zzzzzz/zzzzzzzzz/

:-)

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Geoffrey Myers
Sent: Wednesday, June 08, 2011 10:11 AM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] Get host's IP address as an unprivileged user?

Derek Atkins wrote:
> Richard Bronosky <Richard at Bronosky.com> writes:
> 
>> Thanks Geoffrey. A little piece of me dies every time I see some one
>> pipe [almost] any combination of grep | sed | awk | tr | cut
> 
> I admit that 'awk' is just one of those tools I never completely
groked.
> I learned enough to use it to print out the Nth field, but that's
really
> all I know how to do with it, which is why I use the other tools.

I once used awk to build a language pre-processor, so I have used it 
extensively.  Gotten a little rusty of late though, from disuse.

> 
> Besides, that's the whole point of Unix -- you have lots of small
tools
> that each do one thing well, and then you string them together to make
> the functionality you want!

True, but reducing the number of processes is always good.

> 
> -derek
> 


-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson
_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
 
Proud partner. Susan G. Komen for the Cure.
 
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------



More information about the Ale mailing list