Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Sedo.com

Wanted: Service Can Anyone Help Me With This

Status
Not open for further replies.

MELIAM

Level 4
Legacy Platinum Member
Joined
Feb 11, 2006
Messages
151
Reaction score
0
Hi All,
I am looking to create a txt doc or small program that can add a word to all the end of the existing words see example below.

Input txt doc

Abbey Wood
Acton
Addington
Addiscombe
Alperton

Output txt doc with the word London added to the end of each word

Abbey Wood London
Acton London
Addington London
Addiscombe London
Alperton London

Can this be done
any help would be great.
 

chickenhawk

Level 2
Legacy Platinum Member
Joined
Jun 21, 2007
Messages
37
Reaction score
0
in unix:
sed 's/$/ London/' orig.txt > new.txt

in windows:
use ms word
edit->find->replace
find what: ^p
replace with: London^p
the ^ is above the 6. ^p means find paragraph marker (end of line)
 

MELIAM

Level 4
Legacy Platinum Member
Joined
Feb 11, 2006
Messages
151
Reaction score
0
Thanks Chickenhawk went with the ms one, thanks again.
 
Status
Not open for further replies.

The Rule #1

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

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

New Threads

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom