Re: replacing text
Re: replacing text
- Subject: Re: replacing text
- From: Jolly Roger <email@hidden>
- Date: Wed, 13 Jun 2001 17:24:25 -0500
On 6/13/2001 3:32 PM, "g_vkatta" <email@hidden> wrote:
>
hi!
>
>
>
i have a folder consisisting of html files,i want to delete a line in all the
>
html files in side that folder,i can do it manually by opening each file and
>
deleting the same line in each file in side that folder.
>
>
can some one plesae provide me with the script that selects the folder
>
consisting of many html files and deletes the text in all the html files at a
>
stretch.
>
>
waiting anxiously
Waiting for what?? You mean you want us to write it for you? Where's the
fun in that?? Besides, personally, I have enough to do already. Sorry.
My suggestion:
Try to write the script yourself. Start with a rough outline like this:
-- repeat for each file in the folder
-- open next file
-- read file contents
-- do search & replace
-- close the file
-- end repeat
Then, starting at the top, start writing in the actual code that will
accomplish each step. It's easy - try it.
When you run into a snag, ask specific questions, and I am sure you will get
much more thoughtful help from the people on this list.
Remember: You are not likely to receive help if you are not willing to put
forth some effort into solving your own problems! ;-)
JR