Gig Posters

Posters: 156255 | Bands: 135947 | Designers: 11547                 
   
       RSS Feeds

Username:   Password: 
Register      

Social Networking Activity                 



 Bands  Designers  New Arrivals  Top Lists  Forums  Buy Posters  Submit  Merch Store  Advertise  Widgets  Help

Results 1 to 8 of 8
  1. #1
    Premium Member
    ben swift's Avatar


    Join Date
    Aug 2005
    Location
    Castle Eyeskull
    Posts
    5,466
    Comments
    509

    Default text/HTML document batch processing?

    anyone know of a HTML/text document batch processing program?

    the problem:

    I have a bunch of HTML documents that I need to strip specific PHP code out of so I can run a client's site on a CD. the code is in there for a specific reason on the server, but is causing errors in the off-line version.

    rather than going in and hand-editing all the code, I'm looking for a way to automate.

    Any suggestions?
    thanks-
    ♥ Ben
    benswift.com - nonoart.com - eyeskull.com - me on facebook
    "ben swift hates fun." - Robbie Fuct
    "ben is hella white" - mrblonde

  2. #2
    Justin.Ryan's Avatar

    Join Date
    May 2006
    Location
    texas
    Posts
    1,154
    Comments
    88

    Default

    You can do this in dreamweaver. Site wide changes with find and replace. Find: "code goes here" replace with: "replacement" or leave blank.

    Can also be done in BBedit.

    If you don't have or can't get either and need a hand, send me an email justin(at)justinryan.org

  3. #3
    thejuice's Avatar

    Join Date
    Apr 2006
    Location
    New York
    Posts
    372
    Comments
    290

    Default

    /\
    bingo

  4. #4
    Moderator
    standard's Avatar


    Join Date
    Aug 2002
    Location
    Mass.
    Posts
    31,336
    Comments
    5038
    Items for Sale

    Default

    if i was stuck with that job, i would download the whole site, and use a "site-wide" find-and-replace in Adobe GoLive (or dreamweaver, whatever). i would replace with "nothing".

    not saying it's the most efficient solution, but it'd get the job done.

  5. #5
    Moderator
    standard's Avatar


    Join Date
    Aug 2002
    Location
    Mass.
    Posts
    31,336
    Comments
    5038
    Items for Sale

    Default

    uh. bingo!

  6. #6
    Moderator
    standard's Avatar


    Join Date
    Aug 2002
    Location
    Mass.
    Posts
    31,336
    Comments
    5038
    Items for Sale

    Default

    or you could replace it with a comment like

    <---- I fuckin' roooool -->

  7. #7
    Justin.Ryan's Avatar

    Join Date
    May 2006
    Location
    texas
    Posts
    1,154
    Comments
    88

    Default

    I agree with standards most recent post.

  8. #8
    Premium Member
    ben swift's Avatar


    Join Date
    Aug 2005
    Location
    Castle Eyeskull
    Posts
    5,466
    Comments
    509

    Default

    this works too:

    Freeware download

    HTML Batch Editor


    not the most sophisticated thing in the world, but got the job done in a pinch
    ♥ Ben
    benswift.com - nonoart.com - eyeskull.com - me on facebook
    "ben swift hates fun." - Robbie Fuct
    "ben is hella white" - mrblonde

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •