You can use vi editor. Type:
vi -o mysql.dump mytable.dump
to open both whole dump mysql.dump
and a new file mytable.dump
.
Find the appropriate insert into line by pressing /
and then type a phrase, for example: "insert into `mytable`", then copy that line using yy
. Switch to next file by ctrl+w
then down arrow key
, paste the copied line with pp
. Finally save the new file by typing :wq
and quite vi editor by :q
.
Note that if you have dumped the data using multiple inserts you can copy (yank) all of them at once using Nyy
in which N
is the number of lines to be copied.
I have done it with a file of 920 MB size.