posted on 09:44 AM on Wednesday 03 July 2013
I use bash scripts to tie together different programs to get the results that I need and it is nice to be able to redirect all the stdout and stderr of all the programs to a single output file. In a bash script, you can add the following lines to the top of the script and that will redirect everything to the specified file.
exec > log.out
exec 2>&1
See the following links from which I got the information from:
Drawing of the beach at Club Med Cherating (10:34 AM on Saturday 06 July 2013)
Packaging Java codes into a single JAR (09:11 AM on Thursday 27 June 2013)
Using awk to filter lines on column values (10:28 AM on Thursday 15 August 2013)
Using awk to remove genotypes from a VCF file (08:28 AM on Friday 19 September 2014)
Dumping data from Excel files (08:49 AM on Tuesday 21 July 2015)