Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Pipe UNIX output to BBEdit via the Terminal UNIX
BBEdit's command line interface, bbedit, accepts input from stdin, displaying it in a new untitled document. What can this do for you? You can use BBEdit instead of cat or more or less to look at text output (or use it to edit/create a new file). Try these examples in the terminal:
 % echo "hello world" | bbedit
 % ls /Applications | bbedit
 % grep -i apple /etc/services | bbedit
 % zcat /var/log/system.log.0.gz | bbedit
Obviously, the possiblities are endless. And as flexible as less may be, BBEdit is substantially more Mac user-friendly. Note that this only works for the full version of BBEdit, not for BBEdit Lite.
    •    
  • Currently 2.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[8,345 views]  

Pipe UNIX output to BBEdit via the Terminal | 3 comments | Create New Account
Click here to return to the 'Pipe UNIX output to BBEdit via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Pipe UNIX output to BBEdit via the Terminal
Authored by: dknecht on Mar 31, '03 10:55:52AM

For those of you that don't own BBEdit or would just like another way to view files from terminal can use a program called AquaLess. This program containts a Coccoa app and Command Line tool that let you pipe output or files to a window in the coccoa side of the program.

Quoted from AquaLess - http://aqualess.sourceforge.net/

"AquaLess is a text pager for Mac OS X. It allows you to browse plain text files and -- more importantly -- text output from Unix command line tools. AquaLess is a Cocoa replacement for the less command, which is constrained to the terminal window. AquaLess opens a separate window for each text, so you can keep working in the terminal while you read."

I am not affiliated with this project.

[ Reply to This | # ]
Use launch to do this with almost any app
Authored by: sabi on Mar 31, '03 12:30:22PM
Sorry for the plug, but this might be useful for people who don't have a copy of BBEdit or have another preferred text editor. My launch tool lets you do this with any application. For example, to get your file listing in TextEdit:
% ls -l | launch -i com.apple.textedit -
The '-' at the end is important, as it causes launch to look at standard input for text. You'll probably want to make aliases which run launch on common applications, as typing the bundle identifiers can get a bit tedious.

[ Reply to This | # ]
"ShellService" as a possible alternative
Authored by: Thomas Kaiser on Apr 01, '03 01:36:41AM
Given, you don't want to switch between Terminal.app and your text
editor at all, you can also give ShellService a try. This nice app
integrates into the service menu (also accessible via a keystroke) and
gives you the ability to type shell commands and let them be replaced by
their output. So, no need to switch between apps if you want to have
output originating from the command line appear in word processors :-)

Regards,

Thomas

[ Reply to This | # ]