Skip to content

Instantly share code, notes, and snippets.

@shigeyas
Created October 1, 2009 08:19
Show Gist options
  • Save shigeyas/198823 to your computer and use it in GitHub Desktop.
Save shigeyas/198823 to your computer and use it in GitHub Desktop.
#!/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