Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

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.

Who has viewed this thread (Total: 1) View details

The Rule #1

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

Members Online

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom