make 2>&1 | tee ./compile.log #### #!/usr/bin/bash make 2>&1 | tee ./compile.log