I would like to search an input file and match the regex error.*error on any line before doing anything else. If it does occur, then stop processing immediately. If it doesn't occur, then process the input file from the beginning normally. How might I do this? Thanks.