Skip to main content
Welcome guest. | Register | Login | Post

Slicing big files

4 replies [Last post]
libervisco's picture
Offline
Joined: 2006-05-04

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.

free-zombie's picture
Offline
Joined: 2006-03-08
for splitting up text

for splitting up text files, you could try combinations of head and tail, but can't you use grep for finding ?

libervisco's picture
Offline
Joined: 2006-05-04
I can use grep, but in this

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. Smiling

tbuitenh's picture
Offline
Joined: 2005-12-21
How about the very

How about the very obviously named split command?

libervisco's picture
Offline