![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how do I replace a word in a file using DOS commands?? | sabithareddym | Windows & DOS: Issues & Discussions | 1 | 05-22-2008 12:17 AM |
| replace word in a file | ust | Shell Programming and Scripting | 5 | 11-30-2007 08:03 PM |
| Replace word. | abu_hassan | SUN Solaris | 2 | 03-04-2007 05:14 PM |
| how to replace a word with another | rkrgarlapati | Shell Programming and Scripting | 1 | 07-24-2006 07:42 AM |
| How to replace a word with a series of words in a file | brap45 | Shell Programming and Scripting | 2 | 02-21-2006 02:33 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Replace word in a file
Guys,
I need to replace a portion of the lines in the file depending on the word in my file i have this content use DBNAME go print "use DBNAME" i want to replace the variable DBNAME with something else. But the catch is this line is not always "use DBNAME". Sometimes it can be like "use NAME" Hence i need to find the word use and then replace the word after that. I am absolutely clueless about this and I would appreciate your help in this Thanks Sasi |
|
||||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|