find and replace in every file under a root folder
From: Cortes (tvhoang1980_at_yahoo.com)
Date: 06/07/04
- Next message: Purl Gurl: "Re: find and replace in every file under a root folder"
- Previous message: James Hunt: "Re: searching lines case-insensitive"
- Next in thread: Purl Gurl: "Re: find and replace in every file under a root folder"
- Reply: Purl Gurl: "Re: find and replace in every file under a root folder"
- Reply: Gunnar Hjalmarsson: "Re: find and replace in every file under a root folder"
- Reply: Joe Smith: "Re: find and replace in every file under a root folder"
- Reply: Cortes: "Re: find and replace in every file under a root folder"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 8 Jun 2004 00:02:30 +0800
Suppose I want to add 1 single line:
<script src = "/sample.js" type="text/javascript"></script>
to every single webpage ( preferrably right after the tag <head>) under the
root folder called public_html in my server, i.e including all the webpages
in the subfolders as well. Suppose I have sample.js in public_html as well.
Can someone please spend some of your precious time to help me out with this
script because I know nothing about Perl but I really need the script. I've
done a search but no result.
Thanks very much in advance
- Next message: Purl Gurl: "Re: find and replace in every file under a root folder"
- Previous message: James Hunt: "Re: searching lines case-insensitive"
- Next in thread: Purl Gurl: "Re: find and replace in every file under a root folder"
- Reply: Purl Gurl: "Re: find and replace in every file under a root folder"
- Reply: Gunnar Hjalmarsson: "Re: find and replace in every file under a root folder"
- Reply: Joe Smith: "Re: find and replace in every file under a root folder"
- Reply: Cortes: "Re: find and replace in every file under a root folder"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]