Useful Shell Script Snippets
I've collected these snippets into this list mainly to satisify my own coding needs, I'm definitely not the originator of these techniques.
Basename replacement
This assumes that <path> is a variable that contains the path to be operated upon.${<path>##*/}
Dirname replacement