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

Click here to return to the 'Capture command line output directly to a text file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Capture command line output directly to a text file
Authored by: BlackPenguin on Jul 29, '08 09:51:06AM
If you find you need to do this a lot, you might consider using a better text editor than TextEdit. While there are plenty of options, my favorite is the free TextWrangler. Among many other features, it includes a set of command-line tools which aid in this regard:

system_profiler | edit
That will pipe the output from system_profiler to a new document in TextWrangler, which is more suited to handling that type of text than TextEdit, anyway.

[ Reply to This | # ]