Recursive find and replace for in files
I'm looking to find and replace the <title> of about 600 html documents on a website, going recursively through subdirectories. I tried doing this:
replace="<title>Huntington's Disease Information - HOPES - "
find . -name '*.htm*' -print0 | xargs -0 sed -i "s/$find/$replace/"
This worked fine when I ran it in a test directory, however, when I ran it on the actual site it gave me this:
"xargs: sed: terminated by signal 11"
I suppose this means that it was basically overloaded. Thankfully, all my files are intact, though (and even if they weren't, they're backed up). How do I so something that won't crash?