Sed is a Unix command line tool for doing string substitutions in text files. It is VERY handy when searching for referer spam in your access logs. The article for this blog goes into great detail on how to use it.
I'll write a detailed blog on how to locate referer spam in the future...