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: leamanc on Jul 29, '08 07:01:59PM

What about the way people have been doing it since Unix has existed?
system_profiler > my_text_file.txt
Or if you want to append the output to an existing file, use ">>" instead of ">".
system_profiler >> my_existing_text_file.txt



[ Reply to This | # ]