96 votes

I need to examine an 82.7 GB (!) text file. What can open it?

less filename From the command line, it lets you view files straightaway without loading the full file into memory and no need to split up the file and waste storage or IOPS.
79E09796's user avatar
  • 841
40 votes

I need to examine an 82.7 GB (!) text file. What can open it?

I would not try to open it... I'd rather do: grep - look for some text split - chop the file into say 10Mb chunks. Something like: grep "crash" My80GbFile.txt | more If the big file is not "Line ...
Tim Seed's user avatar
  • 501
31 votes

Replace Text Edit as the default text editor

The solutions proposed here work perfectly for Sublime, but I wanted to do this for Visual Studio Code. The only difference is that you have to find the "application bundle identifier" for whatever ...
Mark Kurkowski's user avatar
27 votes

I need to examine an 82.7 GB (!) text file. What can open it?

In terms of your immediate needs, the best free visual editor for macOS is BBEdit (linked to the Mac App Store download) and it does so much - a true powerhouse. It doesn’t need gigs of memory and is ...
bmike's user avatar
  • 236k
21 votes

Tabs to spaces in BBEdit

This has stymied me for quite some time, and today I found the way to enable this for open documents. At the very top of the Document in BBEdit in the left hand corner, you will find the path of the ...
Ned W.'s user avatar
  • 341
21 votes
Accepted

In TextEdit, if I type two `-` it is converted to one longer `-`

Go to Edit → Substitutions and disable Smart Dashes. You can disable this globally in System Preferences: Keyboard → Text. Disable ‘Use smart quotes and dashes’. To only disable the dash ...
grg's user avatar
  • 201k
15 votes
Accepted

Is there a pre-installed GUI text editor that can edit html files without entering WYSIWYG mode?

You can view any HTML file in source form using the TextEdit app. From the TextEdit User Guide: https://support.apple.com/guide/textedit/txted0b6cd61/mac Always open HTML files in code-editing mode ...
Nimesh Neema's user avatar
  • 51.8k
12 votes

I need to examine an 82.7 GB (!) text file. What can open it?

Use less in a terminal window. It will show you one page at a time of the file, will only load about that much in memory, so you can navigate multi-TB files with it if you want. You probably should ...
jcaron's user avatar
  • 827
11 votes

Free .CSV text file editor for Mac OS X?

Table Tool Free and Open Source (MIT License). Table Tool opens CSV files. It auto-detects character encoding and record separator (comma/semicolon/tab), and supports basic editing operations (like ...
Jakob Egger's user avatar
11 votes
Accepted

How do you cope with tons of web fonts when copying and pasting from web pages?

Most people I know set the paste shortcut to invoke paste and match style. Here is the command to change: You can paste with style when you really want it, but for me 95% of the time I don’t want the ...
bmike's user avatar
  • 236k
11 votes

I need to examine an 82.7 GB (!) text file. What can open it?

Just don't (open it as ONE file) Is there any specific reason that you can not simply break it into about 1GB chunks with a script? Yes, searching and similar functionality will suffer but that will ...
Hobbamok's user avatar
  • 219
10 votes

How to save and exit "nano .bash_profile" in Terminal?

Per Apple's Support Article: To save the file, press Control-O. At the filename prompt, press Enter. To exit, press Control-X.
Steve Moser's user avatar
  • 8,734
10 votes
Accepted

I need to examine an 82.7 GB (!) text file. What can open it?

Try Glogg. There is a MacOs build on the download page: https://glogg.bonnefon.org/download.html I don't know about 80 GB files, but I regularly used it (on Windos) to open log files up to 5 GB, and ...
user2384366's user avatar
9 votes

I need to examine an 82.7 GB (!) text file. What can open it?

With disk based text editors, the file is not loaded entirely into memory - what you see on the UI is a peek into the contents the editor has loaded into memory. I have used UltraEdit successfully in ...
Vinil's user avatar
  • 91
8 votes

Replace TextEdit as the default text editor in MacOS Big Sur

Have you tried SwiftDefaultApps? It's a modern replacement for the old RCDefaults System Preferences pane. https://github.com/Lord-Kamina/SwiftDefaultApps Here are two screen shots of SwiftDefaultApps,...
benwiggy's user avatar
  • 35.7k
7 votes

Find multi-line block using grep and/or automator with BBEdit

You can do multiline greps in TextWrangler using various pattern modifiers (i, m, s, and/or x) e.g. searching for <item>(?s).*?<\/item> will match across lines. After that, you can ...
Trent Bartlem's user avatar
7 votes
Accepted

Open a large XML file

Depending on the source of the file, you may wish to investigate its contents in other ways than just opening it (double clicking). For this, you should use the command line. Some suggested starting ...
Wildcard's user avatar
  • 1,172
7 votes

How to get the line number in TextEdit

I typically use the App Store app to download BBEdit since it runs for free and has all the things you would want including line numbers. If you are familiar with VSCode, that’s a solid option too, ...
bmike's user avatar
  • 236k
6 votes

Free .CSV text file editor for Mac OS X?

DB Browser for SQLite Not an obvious candidate but very powerful (and free). Steps Create an empty Database Import Table form CSV file With various import options Edit, search, plot the data ...
iolsmit's user avatar
  • 4,447
6 votes
Accepted

What command-line text editors come bundled with macOS?

Since you did ask "What other options for command-line text editors are built into macOS?" and ed was not mention in your OP, let me offer it as an addition to the list. The manual page for ed states:...
user3439894's user avatar
  • 58.7k
6 votes
Accepted

How to return back to the default view of pages in Pages?

Welcome to Ask Different! 1) Untick the "Facing Pages" option on the right sidebar in the "Document" tab (the open tab in the picture you have shared). This should remove the diagonals. 2) Click on ...
Alper's user avatar
  • 3,946
5 votes

How to setup a specific application to open all files with unknown extension

I don't think that's possible. OS's usually needs register how to handle each file first. But it's not all lost: here is a situation that Automator can handle easily. Here I'll show you, how to ...
Vagner's user avatar
  • 378
5 votes

BBEdit - Have the Sidebar closed by default

Goto Menu View/Hide Sidebar Goto Menu Window/Save Default Text Window After that, each new window will use this settings.
obb64's user avatar
  • 51
5 votes

macOS keyboard shortcut for correcting misspelled words?

You can't correct them in a single click, but you can make it start to go though them in bulk, correcting each on the way. Cmd ⌘ : [which on a UK keyboard is actually Cmd ⌘ Shift ⇧ ; ] will ...
Tetsujin's user avatar
  • 116k
5 votes

Avoid the terminal process to close, after BBEdit runs a script

As I understand, you have a Python script in BBEdit. You choose to test the code using the "Run in Terminal" option from the '#!' menu. Now a Terminal window opens, runs the script and exits. Now ...
CousinCocaine's user avatar
5 votes
Accepted

Text editor to search/replace newlines and tabs

Text Edit which is available out of the box supports searching for special characters: Access "find" functionality with Cmd-F Click the small magnifying glass at the beginning of the entry field and ...
nohillside's user avatar
  • 101k
5 votes

How to paste copied text without formatting

Paste & Match Style - Cmd ⌘ Shift ⇧ Opt ⌥ V This is almost a global command across Apple apps.
Tetsujin's user avatar
  • 116k
5 votes

Is there a way to use math symbols in TextEdit?

People who need serious equation capability normally use Pages (Apple’s equivalent of Word or LibreOffice) instead of TextEdit. See here for info: https://support.apple.com/guide/pages/add-...
Tom Gewecke's user avatar
  • 20.9k
5 votes
Accepted

What is the use case for textedit in 2023?

It is a basic requirement for an operating system to have an app which will edit plain text files. TextEdit is that app in macOS. There are alternatives (e.g. BBEdit), but TextEdit is the app included ...
Gilby's user avatar
  • 10.9k
4 votes

Where does OS X store unsaved TextEdit documents?

Note: For macOS Mavericks, the path is slightly different. It's ~/Library/Containers/com.apple.TextEdit/Data/Documents.
StalkerGrike's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible