/** * Copyright * * more text * DAMAGE */ I have this command which works fine by deleting copyright headers like the one above:

sed -i.bak -r ':a;N;$!ba;s/\/\*\*([*\n ]*) Copy(.*) DAMAGE(.{1,5}\*\/)//g' file.php This works fine. It doesn't work when I use this:

find mysite/ -type f -name "*.php" -exec sed -i.bak -r ':a;N;$!ba;s/\/\*\*([*\n ]*) Copy(.*) DAMAGE(.{1,5}\*\/)//g' {} \; The files remain unchanged.


Check Solution