Problems modify files with sed

Wednesday, July 9, 2014

Good morning everyone, I have a problem with the following code, if I make the 1.log file but does not modify the files containing PHP eval (..). shows me the following: sed: no input files.


In that I'm wrong?



grep -lr --include=*.php "eval(base64_decode" ./ >> 1.log | xargs sed -i.bak 's/<?php eval(base64_decode[^;]*;/<?php\n/g'






http://ift.tt/1jq4jBM