• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: replacing text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >replacing text (From: g_vkatta <email@hidden>)

  • Prev by Date: Re: is there a reason not to change "Applications (Mac OS 9)"
  • Next by Date: Re: Determine if a filename exists in a LARGE folder
  • Previous by thread: replacing text
  • Next by thread: Re: replacing text
  • Index(es):
    • Date
    • Thread