> > There have been times when I wanted a grep that would print out the > > first occurrence and then stop. > > grep '(your_pattern_here)' | head -1 Doesn't cut it for grep '(your_pattern_here)' firstfile secondfile thirdfile ... -- ado at ncifcrf.gov ADO is a trademark of Ampex.