[Tutor] need advice on streamlining code...

Eric L. Howard elh at outreachnetworks.com
Wed Jan 19 22:26:06 CET 2005


At a certain time, now past [Jan.17.2005-01:48:34PM -0500], elh at outreachnetworks.com spake thusly:
> The following block of code works, and provides the necessary output I'm
> looking for...but I have a feeling that it's working through sheer brute
> force and could be better:
> 
>     insideipgrepfd = os.popen("grep ifconfig_fxp0 /etc/rc.conf")
>     insideipgrep = insideipgrepfd.readlines()

Thanks to all who replied.  I got some good ideas from the exchange.

    ~elh

-- 
Eric L. Howard           e l h @ o u t r e a c h n e t w o r k s . c o m
------------------------------------------------------------------------
www.OutreachNetworks.com                                    313.297.9900
------------------------------------------------------------------------
JabberID: elh at jabber.org                 Advocate of the Theocratic Rule


More information about the Tutor mailing list