Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Making chkconfig's output readable

by perlzilla (Initiate)
on Dec 31, 2004 at 02:23 UTC ( [id://418485]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^2: Making chkconfig's output readable
in thread Making chkconfig's output readable

I really liked your idea. I couldn't help but golf a little. I only output what's on. /sbin/chkconfig --list | perl -nle '$s=(split)[0];s/(\d):on/$a{$s}.=$1/ge;s/(\w+):\s+(on)/$a{"xinetd  -> $1"}=$2/e; END{print "$_: $a{$_}" for sort keys %a}' Score yours: 186 swings; 147 swings if I turn all your vars into single characters. mine: 116 swings. Just having fun!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://418485]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.