View Single Post
Old 09-04-2006, 12:49 AM  
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
*not tested*
put your code in a file code.txt then:

script.sh
Code:
#!/bin/sh
for i in `find . -name index.php`;
do
      cat /path/to/code.txt $i > /tmp/newfile.tmp
      mv /tmp/newfile.tmp $i
done
run the script in the main directory.

BACKUP first
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote