On Fri, May 26, 2006 at 11:29:54AM, Nick Rout wrote:
> what is the best way to parse out the first load average figure, ie in
> this case 18.73

'awk' accepts an "array" of field separators -F'[fsfsfs]' between square 
brackets so the required field $12 can be printed out. Not mentioned in the 
manual.

echo $THAT_LINE | awk -F'[,:]' '{print $12}'


Reply via email to