I've been trying to do this with 'awk' but am hitting probs (not used awk for ages!) so all offers welcome! Given a multiple line file, IN, that contains the word Processor (possibly split over 2 lines) I wish to output the field immediately preceeding Processor. eg for junk info 18 Pro cessor I wish to get the field '18' Cheers, Michael