Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In my perl script, I want to extract just the Total line (which can be in various places depending on the number of servers in the list). I am using the following, which I would expect to work, but it returns null. Any ideas on what I'm doing wrong?HOST ID APP CONN SESS JOB server 0 applic 14:40:28 0 0 0 server 1 applic 14:40:28 0 0 0 server 2 applic 14:40:28 0 0 0 server 3 applic 14:40:28 0 0 0 server 4 applic 14:40:28 0 0 0 server 5 applic 14:40:28 0 0 0 server 6 applic 14:40:28 0 0 0 server 7 applic 14:40:28 0 0 0 Total 0 0 0
$part = `sysutil | awk '{print \$2,\$3,\$4,\$5}'| grep Total`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extract problem
by ikegami (Patriarch) on Sep 22, 2005 at 19:57 UTC | |
|
Re: extract problem
by jpeg (Chaplain) on Sep 22, 2005 at 20:12 UTC | |
|
Re: extract problem
by NetWallah (Canon) on Sep 22, 2005 at 20:39 UTC | |
|
Re: extract problem
by ambrus (Abbot) on Sep 23, 2005 at 16:12 UTC |