Skip to content

Instantly share code, notes, and snippets.

@zhoudd
Last active December 21, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhoudd/6302821 to your computer and use it in GitHub Desktop.
Save zhoudd/6302821 to your computer and use it in GitHub Desktop.
shell template
#!/bin/bash
#
#-----------------------
# Author: zhoudd
# Create: 2013-08-22
#----------------------
#
#script name
_me=${0##*/}
usage(){
echo "
$_me Version 1.0
usage :
$_me <argc> <argv>
eg :
$_me args0 args1 ";
#quit
exit 0;
}
case $1 in
"help"|"-h"|"-v"|"--help"|"--version"|"-version") usage
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment