Some resources for bash scripting
BASH String Manipulation
Bash How To
Sed
What a night mare. Heres an excellent reference to sed :
http://www.grymoire.com/Unix/Sed.html
Some bits’n pieces:
If.. then... else
if [ "$ERRORCODE" != "0" ]; then
echo “error!”
else
echo “pass!”
fi
See our more recent post on bash string filename manipulation.

&fit;
Looking for the entity or hex for that weird ascii character.. try one of these
Ascii Cheatsheet
HTML Entities
Extensive HTML Entities by name

This configuration will do nicely
This site is a good start point for a number of useful apache configuration (htaccess) tips and tricks.
http://www.askapache.com/htaccess/apache-htaccess.html
A more structured but basic cheat sheet can be found here:
mod_rewrite Cheatsheet/
Another collection of tips:
http://www.thejackol.com/htaccess-cheatsheet/