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: spicyj on Jul 29, '08 08:05:44AM
I believe you actually want system_profiler | open -t -f for it to work in Tiger. Also, the hint is incorrect. It will open in the default text editor. If you want to open TextEdit specifically, replace the "-t" with a "-e".

[ Reply to This | # ]
Capture command line output directly to a text file
Authored by: channui on Jul 29, '08 08:38:22AM

According to the 10.5 manpage you should only need to use '-f' to invoke the default text editor using stdin.

ls | open -f

If you want to open a file you can use:

open -t /path/to/some/file.txt



[ Reply to This | # ]