View Single Post
Old 09-04-2006, 12:35 AM  
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
(*)nix gurus - I need help with something...

What can I do on the command line to achieve this:

Code:
<? include("file"); ?>
I wan't to insert that into each file called index.php in recursive directories.

So say I have:

domain.com/teens
domain.com/latinas
domain.com/lesbians

And each directory (teens, latinas and lesbians) has a file called index.php in it and I want that include code to be added to the TOP of (prepended to) the file.

Anyone know of some command line code or a bash script that can achive this?
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote