Add a word to Text file | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Add a word to Text file

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-30-2013
hoo hoo is offline
Registered User
 
Join Date: Feb 2009
Last Activity: 16 March 2013, 11:06 AM EDT
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
Add a word to Text file

Hello,

I have a mysql text file. I want add a word to it. Thanks for help.

Sample text:


Code:
,'address','166 Warren Street, NY 12534'),(45215,26556,'phone','(518)811-4145'),(151426,15565,'listing_duration'
,'address','233 Tan Street, CA 15522'),(45215,26556,'phone','(518)811-4146'),(151426,15565,'listing_duration'

I want this format.


Code:
,'address','166 Warren Street, NY 12534 USA'),(45215,26556,'phone','(518)811-4145'),(151426,15565,'listing_duration'
,'address','233 Tan Street, CA 15522 USA'),(45215,26556,'phone','(518)811-4146'),(151426,15565,'listing_duration'

Sponsored Links
    #2  
Old 01-30-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 17 April 2014, 3:54 AM EDT
Location: Switzerland - GE
Posts: 5,490
Thanks: 148
Thanked 362 Times in 339 Posts
Here you had material to start your work:
http://www.unix.com/shell-programmin...text-file.html

What more do you need? Did you search with google?

Can we see what you did so far AND what is not working?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Add a word to Text file hoo Shell Programming and Scripting 8 01-30-2013 04:43 AM
extract a word from text file name Sindhuap Shell Programming and Scripting 5 12-22-2011 02:47 AM
Script to add text before the first word on a line in a textfile. mjanssen UNIX for Dummies Questions & Answers 3 03-31-2011 03:53 AM
[Bash]Attempting to Merge text from one file into another file at the line directly under a word efciem Shell Programming and Scripting 5 05-23-2010 09:55 AM
Can a shell script pull the first word (or nth word) off each line of a text file? tricky Shell Programming and Scripting 5 08-17-2006 06:29 AM



All times are GMT -4. The time now is 02:40 AM.