I have an SQL file that is more than 50 MB big and that is just too big to open all at once in any text editor, at least on my computer which has only 256MB RAM.
So I'm looking for a way to slice this file into pieces and then opening it piece by piece in order to find what I'm looking for in it (I don't need a whole file).
Is that possible and how?
Thanks alot.
__________________












for splitting up text files, you could try combinations of
headandtail, but can't you usegrepfor finding ?Thomas Jollans
GnuPG key: 1024D/A6B5 9461 B60F 2C80 2399 6B1E 2698 A70E F421 434B
Login or register to post comments 0 points
I can use grep, but in this case it is not sufficient because grep will spew a load of lines containing a term which is mentioned all over the file, so it's not very precise.
Anyway, I'll try those, thanks.
Let's not fear freedom.
Login or register to post comments 0 points
How about the very obviously named split command?
CAN I HAS FIXD CAPSLOK KEE PLZ?
Login or register to post comments 2 points
Hehe you're right. Split does exactly what I need.
Here's the command I used:
split -C 1500000 file.txt. The -C 1500000 part means that it will split the file into 1 500 000 line bytes.Thanks
Let's not fear freedom.
Login or register to post comments 0 points