Or, for the heck of it: sed -n -e '/DATABASE smarlowe/p' -e '141,334p' test.sql > clean.sql ;} Cheers, Andrej -- Please don't top post, and don't use HTML e-Mail :} Make your quotes concise. http://www.american.edu/econ/notes/htmlmail.htm ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend