Keith Kim’s Blog
Technology, Development, Tech Trends, Tech Team Management
2nd
SEP
Editing large text files
Posted by Keith under Tips
Ok, straight to the point: there is NO editor that can handle huge text file, size of giga bytes. I have this SQL file, 10+ GB, and no editor can handle it.
One commercial software I found is: http://www.textmaster.ca/
It claims it can handle 300GB file. It’s nice, but I don’t do this too often, so sorry, I don’t want to purchase one. One easy way to go around the problem is, of course, splitting the file into multiple files and edit each, and later join the files together.
Split:
[sourcecode language=’css’]
split -b 50m example.sql example_
[/sourcecode]
Join:
[sourcecode language=’css’]
cat example_[aa-bb] > example.sql
[/sourcecode]
This will do.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jan | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||
Recent Posts
- Google Go, windows version is out
- Using Clojure in Cygwin
- Editing big text files in Windows
- Try Google Chrome OS
- The surprising science of motivation: Dan Pink on TED.com
Recent Comments
- Keith on Code Review tools
- Jesse Gibbs on Code Review tools
- pdumsproject on MS Project replacement (Desktop apps)
- sparky on EverNote, better than Microsoft OneNote
- Keith on Intro: Java ME and Palm
Categories
- Architecture
- Books
- Clojure
- Cool Apps
- Development Tools
- Erlang
- Fun
- Golang
- J2EE
- J2ME
- Java
- Lisp
- Management
- PDA
- Sites
- Tips
- Unix/Linux
- Windows
Archives
- January 2010
- December 2009
- November 2009
- July 2009
- May 2009
- January 2009
- December 2008
- November 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- April 2007