Created
October 1, 2009 08:19
-
-
Save shigeyas/198823 to your computer and use it in GitHub Desktop.
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 | |
# script command front end to add time stamp to the script | |
case $# in | |
0) PREFIX="";; | |
*) PREFIX="$1-";shift; | |
esac | |
exec script $PREFIX`date '+%Y-%m%d-%H%M%S'`.script $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment