Skip to content

Instantly share code, notes, and snippets.

View henryiii's full-sized avatar

Henry Schreiner henryiii

View GitHub Profile
@Gen2ly
Gen2ly / template-basic
Created May 31, 2012 15:47
Description of script
#!/bin/bash
# Description of script
# Display usage if no parameters given
if [[ -z "$@" ]]; then
echo " ${0##*/} <input> - description"
exit
fi
# Required program(s)
@Gen2ly
Gen2ly / template
Created May 31, 2012 15:47
Description of script
#!/bin/bash
# Description of script
# Required program(s)
req_progs=(prog1 prog2)
for p in ${req_progs[@]}; do
hash "$p" 2>&- || \
{ echo >&2 " Required program \"$p\" not installed."; exit 1; }
done