Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: extract problem

by jpeg (Chaplain)
on Sep 22, 2005 at 20:12 UTC ( [id://494281]=note: print w/replies, xml ) Need Help??


in reply to extract problem

awk would think "Total" is field $1, no?

I reckon I'd avoid the pipe to awk and grep; perl can do it instead:

my @sysutiloutput = `sysutil`; my @total = grep (/Total/, @sysutiloutput); print ("@total\n");
--
jpg

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://494281]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-20 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found