![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Replacing a line in a file - HELP!!! | maxmave | Shell Programming and Scripting | 1 | 4 Weeks Ago 08:55 PM |
| Replacing the last data of each line ina file | jisha | Shell Programming and Scripting | 2 | 01-31-2008 09:55 PM |
| replacing a line of unknown charecters in a file | malavm | Shell Programming and Scripting | 12 | 07-26-2007 01:25 AM |
| Replacing characters in file with line break | johnemb | Shell Programming and Scripting | 10 | 04-26-2007 04:38 AM |
| replacing first line or lines in a file | Terrible | UNIX for Advanced & Expert Users | 3 | 06-28-2006 05:23 PM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Replacing line with a new file in a file
Hi,
I have a txt file which contains: Apple is red. Orange is orange. Banana is yellow. Strawberry is red. -eof- How do I go about replacing "Banana is yellow" with "Cherry is red"? I tried to use seekp to get the position of Banana and replace that line but unable to. Please advise. Thanks. |
| Forum Sponsor | ||
|
|