in reply to "Pattern Matching", not using regex

grep -B 1 'yourinput' yourfile its not perl, but it is a lot more effective.

T I M T O W T D I