Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

GRMrGecko

macrumors member
Original poster
I have an access log that I need to read and it is 3GB in size. Any application that can read that? Maybe Hex Edit.
 
There's really no good way to do this; any program you use is going to take forever to open it. Like... hours possibly. I'd try a built-in text editor like nano or emacs.
 
I'd recommend splitting the file into smaller ones. Using terminal you can use the split command.

Code:
split -l 100000 largeFile.log split_
This will split the file into files of 100K lines per file. I haven't tried it out though. The last piece is the prefix for the split-named files e.g., split_001.
 
I'd recommend splitting the file into smaller ones. Using terminal you can use the split command.

Code:
split -l 100000 largeFile.log split_
This will split the file into files of 100K lines per file. I haven't tried it out though. The last piece is the prefix for the split-named files e.g., split_001.

Great idea, I never knew of that command.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.