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
|