Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
NDD Camp 2024

How to do string edit

Status
Not open for further replies.

Nameable

DNF Member
Legacy Exclusive Member
Joined
Jan 26, 2004
Messages
462
Reaction score
0
Feedback: 5 / 0 / 0
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.
 

WebCat

Level 7
Legacy Exclusive Member
Joined
Mar 9, 2003
Messages
913
Reaction score
0
Feedback: 0 / 0 / 0
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
 

.com.net.org

Level 8
Legacy Platinum Member
Joined
Oct 20, 2002
Messages
1,951
Reaction score
0
Feedback: 0 / 0 / 0
UltraEdit will do this job easily and quickly.

It has Column Mode to do this task.
 

samscripts

Level 4
Legacy Platinum Member
Joined
Nov 2, 2002
Messages
180
Reaction score
0
Feedback: 0 / 0 / 0
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
 

domainduck

Level 5
Legacy Platinum Member
Joined
May 31, 2002
Messages
375
Reaction score
0
Feedback: 0 / 0 / 0
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.
 

WebCat

Level 7
Legacy Exclusive Member
Joined
Mar 9, 2003
Messages
913
Reaction score
0
Feedback: 0 / 0 / 0
Anything for the QuackMaster! :wink:
 

owen

Level 4
Legacy Platinum Member
Joined
Mar 29, 2002
Messages
136
Reaction score
1
Feedback: 0 / 0 / 0
awk '{print "http://www."$1}' domainlist.txt > newlist.txt
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Be a Squirrel
MariaBuy

Our Mods' Businesses

URL Shortener
UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom