Ok - getting there, but not quite
first of all, we don't care about the title line, so we can just reject that
Next - we split up the data line into some variables
Like this, with the open bit from my previous post
while(<SAR>){
next if /usr/; # reject title line
($tm,$usr,$sys,$wio,$idle) =
split(/\s+/);
# and now do something with the data
}
the split() function chops up the line based on spaces (that's the /\s+/ bit)
with me?
If you are, what is it you'd like to do with this data? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.