../somescript.sh
/home/bob/bin/scrip.sh
bash
bash somescript.sh
myscript.sh
~/.bash_profile
./myscript.sh
.myscript.sh
test
X=$Y $Z #is bad X="$Y $Z" is better
Never do:
rm -rf $files_to_delete
Never, ever, ever do:
rm -rf /$files_to_delete
Use this instead:
[ -n "$files_to_delete" ] && rm -rf $files_to_delete
printf '%s\n' "$string"