Please use [code][/code]
tags around your code and data, to preserve formatting and to improve readability. Please do not use quote tags, colors, or other fancy formatting.
Actually, it's not a bash
script. Since it begins with #!/bin/sh
, and doesn't contain any bash-specific syntax, it's just a generic posix-compliant script.
Still, everything written there should be covered in just about any bourne-compatible shell tutorial out there. Here's my favorite:
BTW, $(..) is highly recommended over `..`