• Welcome to DNForum.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Wanted: Service How to do string edit

Status
Not open for further replies.
Easy. Get a text editor that has macro functions.

I use EditPlus (editplus.com - not my site).

You just copy "http://www" so it's on your clipboard, start recording keystrokes (Ctrl-Q), do one paste - down arrow- home combo, stop recording, then playback your macro (hold down Alt-1).

I'm sure there are tons of other text editors with macro functionality you could try too.
 
Not sure what you want to do with them.

php has the explode function that can seperate text files into variables. Then you could concatenate the additional text on the beginning of each variable. Do you need a custom script?

A spreadsheet can also work wonders! Sometimes I combine a spreadsheet with a replace function in Word.

And of course macros can be programmed as well! But they can be a little tricky.

Then there's plain old search and replace functions in most word processors.

I hope some of that will help you, mighty Quack Master!

WebCat
 
UltraEdit will do this job easily and quickly.

It has Column Mode to do this task.
 
This is simple to do with php - here's a quick script I knocked up:

www.samscripts.com/blahblahblah.php

Just copy and paste a list of domains and enter the string to change them to, using {domain} as a placeholder for each domain. There are a couple of examples on the page.

If anyone wants a copy they can download it at www.samscripts.com/blahblahblah.php.txt - 100% public domain, open source blah blah blah.

hope that helps,

Sam
 
Wiz,

Thank you very much.

I have UltraEdit and will give this a shot.

-----------

And SAM, talk about over-and-above the call of duty.

That's a great little script that you wrote.

Thanks to all who answered my plea... I really appreciate the help.


quack, quack, quack


Originally posted by .com.net.org
UltraEdit will do this job easily and quickly.

It has Column Mode to do this task.
 
Anything for the QuackMaster! :wink:
 
awk '{print "http://www."$1}' domainlist.txt > newlist.txt
 
Status
Not open for further replies.
Back
Top Bottom