Skip to content

Instantly share code, notes, and snippets.

@hapylestat
Created August 23, 2013 14:39
Show Gist options
  • Save hapylestat/6320049 to your computer and use it in GitHub Desktop.
Save hapylestat/6320049 to your computer and use it in GitHub Desktop.
[bash-tool] Template for new script based on framework
#!/bin/bash
######################################
# Shell script #
# Author: H.L. #
# TPL Version: 0.1 #
######################################
#========================Global variables
APPVER="0.1b"
MYDIR=`echo $0`
FILENAME=`echo $MYDIR|rev|cut -d / -f 1|rev`
MYDIR=${MYDIR%%/$FILENAME}
#=======================Include base library
. $MYDIR/functions.shinc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment