Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

bigd asked in Computers & InternetSoftware · 1 decade ago

I have about 4,000 .asp files that have a specific line of code I need to remove.?

Is there a program or a very simple script I can generate to remove this code without having to go through each file manually?

I have a Mac so I can use Automator or some other program and I can also get access to a PC. Thanks!

2 Answers

Relevance
  • 1 decade ago

    Is Dreamweaver available for the Mac? I use that On the PC all the time for that specific requirement as you can set the replace to look at the source.

  • Matt H
    Lv 4
    1 decade ago

    You have a mac, therefore you have bash. Follow this guide on using sed to find and replace the line you wish:

    http://linux.about.com/od/bgb_guide/a/gdebgb44t03....

Still have questions? Get your answers by asking now.