![]() |
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 |
| Joining lines from two files - please help | chandra004 | Shell Programming and Scripting | 25 | 07-27-2006 03:39 AM |
| Joining 3 lines at a time | Sabari Nath S | Shell Programming and Scripting | 14 | 12-21-2005 01:29 AM |
| Joining 2 lines in a file together | m223464 | Shell Programming and Scripting | 3 | 05-12-2005 12:42 PM |
| Joining multiple lines | beilstwh | Shell Programming and Scripting | 4 | 03-02-2005 05:51 AM |
| Joining lines in log file | bubba112557 | Shell Programming and Scripting | 3 | 05-18-2004 08:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Conditionally joining lines in vi
I've done this before but I can't remember how. Too long away from vi.
I want to do a search are replace, but I want the replace to be a join. Example see spot run see spot walk see spot run fast see spot hop %s/run$/<somehow perform a join with the next line>/g so the results should be see spot runsee spot walk see spot run fast see spot hop Thanks in advance- Ivan |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|