sed -n "/This is the temp line/,$"p infile > outfile