Simplified solution, assuming that all virus code is on a single line:
find /www/directory -name '*.html' -o -name '*.php' -exec perl -i -ne 'print unless /getrelax4you\.com/' '{}' \;
Short explanation: visit all files under /www/directory with html or php extension. Use perl to edit each file in place by copying all lines verbatim to output, unless they contain string "getrelax4you.com"; which are removed.
Caveat emptor! Make backup before trying this; i might have missed some small detail.
zvrba
2010-06-23 19:21:46