Active12 months ago
I am running Mac OS X 10.8.4 (Mountain Lion) and I am trying to open and scroll through a 42 GB .XML file.
For the majority of document comparison needs for Mac-using lawyers, the Compare Document tool in Microsoft Word for Mac will work just fine. These can help you to compare two text files, pdf files, doc files even two different webpages. Comments are closed. You can force FileMerge to compare individual non-text files, but again, unless the content is mainly text, the comparison won't make much sense. FileMerge has filters to convert certain types of non-text files (e.g., RTF) into an ASCII representation for the comparison.
- You can force FileMerge to compare individual non-text files, but again, unless the content is mainly text, the comparison won't make much sense. FileMerge has filters to convert certain types of non-text files (e.g., RTF) into an ASCII representation for the comparison.
- One of the few diff tools that works with more than just text and image files, Araxis Merge lets you also compare office documents (like MS Word, Excel, Powerpoint, or ODF). For people working on both Windows and Mac, it's great to know that a single license is valid for both platforms.
I plan on using an XML parser to parse through it and delete parts, but first I need to know how the document is structured so I can know what parts to save.
How can I open this text / XML file and scroll through it so I can get a glimpse of its structure?
I tried my default text-editor, text-mate, and that couldn't open it. I tried gEdit and that shows the first 10 or so lines, but then quits after trying to load the rest.
I would greatly appreciate any and all suggestions!
Hennes60k77 gold badges9494 silver badges144144 bronze badges
Django JohnsonDjango Johnson
5 Answers
The easiest way is to use a terminal pager. Open a terminal and run
or
terdonterdon43.3k1111 gold badges9898 silver badges146146 bronze badges
Well, hexfiend is what I use, and love to use...
If it is a text file, you just go to Views and uncheck Hexadecimal option, it will show only text.
So, for example I scrolled to line: 37802466 superfast, no glitches...
Aleksandar PavićAleksandar Pavić
![File File](/uploads/1/2/6/3/126346703/206577189.png)
vi
will not read all file at once and will cache it. Give it a try. It can also syntax-hihglight it, so it's a plus over less
.bayindirhbayindirh
As @terdon already said: Terminal pagers will work regardless how big the file is.
(42 GB... Just curious how you managed to get a file that big...)
(42 GB... Just curious how you managed to get a file that big...)
I just verified that TextWrangler has a maximum limit of about 380 MB per file.
If you have a PC handy (or Wine) you can try the trail version of UltraEdit.
This can 100% certain deal with such files.
TonnyTonnyThis can 100% certain deal with such files.
18.4k33 gold badges3737 silver badges5858 bronze badges
Text Files Compare For Mac
The best tool for open and searching content I found was glogg
It is multiplatform and has a graphical interface.
Best File Compare Software
ricardoricardo