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");
In reply to Re: extract problem
by jpeg
in thread extract problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |