Created
March 22, 2013 23:10
-
-
Save timabell/5225457 to your computer and use it in GitHub Desktop.
quick thing for logging what you've done on the console.
needs exec bit. then run with "./logcommand.sh somecommand -args ..."
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
#!/bin/sh | |
echo >> testing.txt | |
echo "\$ $*" >> testing.txt | |
$* 2>&1 | tee -a testing.txt | |
echo >> testing.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment