Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


Getting shell INPUT and OUTPUT into a file

There are two ways to store the input and output of a shell script into the
same file.

If you want to store the input and output of a shell script into the same
file, enable the shell's "verbose" mode with this command:

	set verbose

This causes the shell to print its input and output to the standard output
stream, which you can redirect with the '>' character:

	command > foo

The ouput of the command is stored in the file named 'foo'.  When you're done,
type this command to disable the "verbose" mode:

	unset verbose

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.