Tuesday, September 29, 2015

Forward standard output and standard error to a file

If you are executing a bash script in unix and need to save screen output in a file, you can redirect both standard output and standard error to a file using $>

source script_file $> output_file 

No comments:

Post a Comment