You are here

Script header

#!/bin/bash
# Purpose :
# vim: se ts=4 sw=4 ai:

script=$0
script_dir=${script%/*}
script=${script##*/}
SUFFIX=$(date +%y%m%d.%H%M%S)
logfile=/tmp/$script.$SUFFIX

# Let unset variables cause an error
set -u