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: CarlRJ on Jul 29, '08 03:09:28PM

So, I'm late to this party, but I have to point out that the title of this article, "Capture command line output directly to a text file" is just plain wrong, as the direct obvious way to do what the title says is clearly:

system_profiler > /tmp/some_file_name

This puts the output of system_profiler directly into the file /tmp/some_file_name, while the hint, and all the comments, are directing the output to an editor of some sort, and suggesting you could then save the output. That can be a nice thing to do, but it doesn't fit the title.

And... on that front, I must offer:

system_profiler | vim -

Which keeps everything in the Terminal, and uses The Best Editor Ever.

But, please, if the hint remains the same, change the title to something like "Capture command line output into a text editor".

[ Reply to This | # ]