Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Making chkconfig's output readable

by petdance (Parson)
on Dec 18, 2004 at 05:57 UTC ( [id://415832]=note: print w/replies, xml ) Need Help??


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

I want to look at all of them, at a glance. The "on" and "off" strings are unnecessarily obscuring. The best way to say "no" is with whitespace. It makes you think, rather than make the answers incredibly obvious.

Do you honestly not see the difference between the default output and what I put together?

xoxo,
Andy

  • Comment on Re^2: Making chkconfig's output readable

Replies are listed 'Best First'.
Re^3: Making chkconfig's output readable
by perlzilla (Initiate) on Dec 31, 2004 at 07:23 UTC
    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://415832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found