![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: Qc
Posts: 3,006
|
![]() I need to change all my ARS codes on my server.
Any suggestion for a good perl script to do the job?
__________________
rssEVOLUTION : Produce a FULL website with ANY RSS feed(s) in seconds. contentSOLUTION : Allowing you to automatically grab articles from article directories, import as many text files as you want at once, grab ANY content from ANY RSS feed, and scrape search engines, instantly. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
you can do it with php
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Aug 2003
Posts: 1,798
|
I can code something like this in php real fast ...
Also, if you have dreamweaver, it has a find and replace tool on it that will work on whole directories ...
__________________
TGP Webmasters: sign up for the top 100 tgp list! Submit galleries If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
So Fucking Banned
Join Date: Aug 2002
Posts: 5,579
|
just use sed, much easier
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Oct 2003
Location: Seattle
Posts: 379
|
You don't even need perl to do that, although it's certainly possible. I don't know exactly how your file structure is, so I don't know if this solution works for you, but it's how I'd do it.
---------------------- #!/bin/bash for i in * do cat $i | sed 's/old_ars_code/new_ars_code/g' > .tmpabc123 mv .tmpabc123 $i done ---------------------- That just goes through all files in a given directory and replaces "old_ars_code" with "new_ars_code". Not perl, but it's probably just as fast (if not faster) and it's simple. -Pun |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: Qc
Posts: 3,006
|
bump
![]()
__________________
rssEVOLUTION : Produce a FULL website with ANY RSS feed(s) in seconds. contentSOLUTION : Allowing you to automatically grab articles from article directories, import as many text files as you want at once, grab ANY content from ANY RSS feed, and scrape search engines, instantly. |
![]() |
![]() ![]() ![]() ![]() ![]() |