Created
July 6, 2016 19:01
-
-
Save urbanautomaton/6f10fb983d8bb6a36548d47ad310de62 to your computer and use it in GitHub Desktop.
appending script output to a logfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
exec 1> >(tee -a somefile.log) 2>&1 | |
echo "hello" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment