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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-13-2004, 06:46 PM   #1
Argoz
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: Qc
Posts: 3,006
I need a Find & Replace perl script

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.
Argoz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2004, 06:46 PM   #2
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
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
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2004, 06:54 PM   #3
SMG
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.
SMG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2004, 06:55 PM   #4
Rorschach
So Fucking Banned
 
Join Date: Aug 2002
Posts: 5,579
just use sed, much easier
Rorschach is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2004, 06:55 PM   #5
Pun
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
__________________
TrafficHolder.com - Buy/Sell Adult Traffic
ICQ: 18771941
Pun is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-13-2004, 08:58 PM   #6
Argoz
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.
Argoz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.