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

Pipe Terminal output to BBEdit UNIX
I always knew you could open files in bbedit from the command line with bbedit filename. But I just realized that you can pipe to bbedit, too! For example:
# mysqldump some_db_name  | bbedit
Pretty cool!
    •    
  • Currently 3.67 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[6,525 views]  

Pipe Terminal output to BBEdit | 10 comments | Create New Account
Click here to return to the 'Pipe Terminal output to BBEdit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Pipe Terminal output to BBEdit
Authored by: Hes Nikke on Apr 25, '03 10:25:18AM

or you can run a BBEdit Shell Worksheet, those are fun :)

---
vacuums do not suck. they merely provide an absence that allows other objects to take the place of what becomes absent.



[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: vogunaescht on Apr 25, '03 10:46:07AM

"man bbbedit" shows even more things you can do with bbedit.



[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: jzsimon on Apr 25, '03 12:44:01PM
Actually I posted this hint about a month ago. :)
Take a look at it for some examples.

[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: ssevenup on Apr 25, '03 06:28:20PM

Interesting pile of code it barfs into the Terminal window in the process!

--MM

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: iroot on Apr 25, '03 08:08:23PM

Ok, so how do you pipe all of the current Terminal window's text
to BBEdit?



[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: semios on Apr 26, '03 07:34:33PM
Command-A
Command-C
$ pbpaste | bbedit


[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: semios on Apr 26, '03 07:36:57PM
Actually, sorry the comment above will do the entire buffer. To do just what's shown in the window do this:
Command-A
Command-C
$ pbpaste | tail -24 | bbedit


[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: ragengs on Apr 27, '03 08:11:57AM

I tried this but i get always an error:
bbedit: Command not found.

bbedit is installed. i tried doing it with BBedit but no luck can
someone tell what could be wrong.

Something is probably missing.

thanks



[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: owain_vaughan on Apr 28, '03 06:21:19AM

You need to separately install the UNIX tools. ISTR it was a separate DMG inside the main DMG.



[ Reply to This | # ]
Pipe Terminal output to BBEdit
Authored by: kirkmc on Apr 28, '03 06:41:55AM

You can also do this if you have TextWrangler, the "lite" version of BBedit. It comes with a command-line tool called "edit". So,

ls | edit

does the same, with TextWrangler, as

ls | bbedit

does with BBedit.

Kirk



[ Reply to This | # ]