Skip to content

Instantly share code, notes, and snippets.

@ovntatar
Created May 7, 2013 13:19
Show Gist options
  • Save ovntatar/5532496 to your computer and use it in GitHub Desktop.
Save ovntatar/5532496 to your computer and use it in GitHub Desktop.
Bash template
#!/bin/bash
#
#
# SCRIPT: $0
# AUTHOR: ovntatar
# DATE: $date
#
# PURPOSE: The script bash template
#
#
# REV LIST:
#
#
#set -x # Debugging
#set -n # Check script systanx
#
#################################################
#
# FOR DEBUGGING PLEASE CHANGE 0 to 1
#
#################################################
LOG_FILE=''
PSID=$$
[ ! $DEBUG ] && DEBUG=1
LOG() {
[ "$DEBUG" == 1 ] && echo "$1" >>$LOG_FILE
}
echo $(date) --- Start $0 >> $LOG_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment