Placing Command Output in a File
When the output is very long, when you need to store or analyze the output, or when you need to send the output in e-mail, you can redirect the output to a file. Doing this is useful when the output scrolls off the screen, making it difficult to cut the output from a window and paste it into another.
To save the output to a file, specify the
savecommand after the pipe:user@host>command| savefilenameBy default, the file is placed in your home directory on the router. For information about how you can specify the filename, see Specifying Filenames and URLs.
This example stores the output of the
request support informationcommand in a file:user@host>request support information | savefilenameWrote 1143 lines of output to `filename'user@host>