Okay, now I changed every file that event has the word Media to Product and media to product. That should work for all types, variables, compound words in the documentation too. And I did it in only two commands. Ahhh the magical power that is sed: sed -i ‘s/media.h/product.h/g’ *