perl -pi.bak -e 's#\Qhere.company.com/pagedir#there.company.com/#g' file1 file2 etc...