in reply to Re: Reading a file from any arbitrary place in the file.in thread Reading a file from any arbitrary place in the file.
sed -n "1,/This is the temp line/"!p infile > outfile [download]