I've got a large problem. I'm trying to remove malware code from first lines of php files in my project but all the time console returns:
sed: 1: "./{PATH_TO_FILE}": invalid command code .
My request:
find . -name "*.php" -type f -exec sed -n -i '1s/.*/<?php/' {} \;
Can anyone tell me what is wrong here? :)
Thanks a lot in advance!