Add a word to Text file

Hello,

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

Sample sql file:

,'address','166 Warren Street, NY 12534'),(45215,26556,'phone','(518)811-4145'),(151426,15565,'listing_duration','address','122 Hom Street, NY 45623'),(45215,26556,'phone','(518)811-4145'),(151426,15565,'listing_duration'

I want this format.

,'address','166 Warren Street, NY 12534 USA'),(45215,26556,'phone','(518)811-4145'),(151426,15565,'listing_duration','address','122  Hom Street, NY 45623 USA'),(45215,26556,'phone','(518)811-4145'),(151426,15565,'listing_duration'

Hi,

What have you tried so far, and what isn't working?

Hello,

I don't know shell programming.

Let me help you: Shell programming

hey,

below command will help you.

 sed "s/NY \(.....\)/NY \1 USA/g" $file 

Hello,

Thank you very much for this help. but all the addresses(states) are different.

If you dont know shell programming you should not post here but in dummies, here is for people who are facing issues with their scripts or programs, and so we expect to see a minimum of code in order to help