If you didn't want the original line, grep -A 1 sometext somefile | grep -v sometext But I'm probably missing something pretty obvious... MG Scott Lambdin wrote: > Is there a way to search for the next line without a certain pattern? > I'm > not figuring it out. > > --Scott > >