Hi I'm trying to pipe a grep to an outfile. The grep function works ok @sc=grep /win|net/, @NIC However, I would like to insert a couple of lines before the file starts to log all occurrences containing net without using separate grep commands. All help appreciated Toni