HI,
I am trying to figure out two things:
- sed to print all matches on a regex with out edit
- sed inline to remove matched edit after review
I have the regex ok. Using egrep in the following gives me all the matches :
Code:
for i in $(egrep -rl 'eval\(base64_decode\("CmVyc?.*\)\)\;' ./*|wc -l);do echo "Total infected files is $i";done
Total infected files is 2157
I am just not sure how to take the regex and add in to sed. Can anyone help with this?
Thanks for looking.