tags:

views:

24

answers:

2

Hi,

I found out that someone spyware on my server and the spyware infected all the files. Infected files have tag at the bottom of the file.

is there a way to loop all the files and remove only certain tag under linux?

A: 

You can use grep to find files containing the tag, and then sed (or a grep -v) to remove it.

Borealid
+1  A: 
sed -i 's/tag//g' file*

or

sed -i '/tag/d' file*
ghostdog74