On Fri, 2006-11-03 at 13:32 -0800, Aleksei Dzhulai wrote: > The simplest case: > awk '{for (i=1;i<=NF;i++) {if ($i~/Processor/) print $(i-1)} }' file > I don't think that will pick up the case where the required output is on the line before Processor, but thanks, M