At my job, I am constantly working with enormous sql queries. Whenever I do not have SSH access to a server, I am required to use phpMyAdmin, which times out with such large files, so... Is there a way that I could write a simple script (or use automator) to ask me how many pieces I would like a file broken into and then it would divide the text file into smaller files with a numbering system (file_1.sql, file_2.sql, etc). I have BBEdit and QuicKeys, as well. I can do everything except command it to select a specified portion of text. It is also essential, obviously, that it only divide at line breaks. Any ideas? Thanks in advance for pondering this one.