How can I find which line number contains "1083300070" and then slice the file from that line number and to its end?sed read about ranges, complements (!), and d deleteWould it be easier if I already now the line number? (I found it with grep)I think this will do it: sed '/1083300070/,$!d' file
This was also helpful: http://www.linuxgazette.com/node/view/3762 I did it like this: grep -n "1083300070" updatelog.sql sed -n "59507480,999999999p" updatelog.sql > updatelog2.sql & Thanks for your help, Jacob