![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interchange 5.6.0 (Stable 5.6.x branch) | iBot | Software Releases - RSS News | 0 | 05-22-2008 08:50 AM |
| Interchange 5.5.2 (Development branch) | iBot | Software Releases - RSS News | 0 | 04-30-2008 04:50 AM |
| How to put the comments to 50 lines, using vi editor? | artikulkarni | UNIX for Dummies Questions & Answers | 3 | 02-08-2008 04:57 AM |
| How to interchange the lines | shankarao | Shell Programming and Scripting | 5 | 11-05-2006 02:28 PM |
| Reading lines within vi editor | asriva26 | Shell Programming and Scripting | 2 | 08-30-2006 09:47 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
I have a quick question regarding vi editor.Is it possible to interchange two lines in vi editor without using the possibilites of cut-paste,copy paste etc? Your help is appreciated! Regards Dileep |
|
||||
|
you need to 'map' certain key-stroke to do this
In vi, go into the command mode by keeping the following :map , ddp If you position your cursor in that line, by typing the "," (comma) key it will delete the current line and paste it below the current cursor. Basically it swaps the two lines. |
|
||||
|
Quote:
Regards Dileep Pattayath |
|
||||
|
Quote:
Thank you so much! Regards Dileep Pattayath |
![]() |
| Bookmarks |
| Tags |
| sed delete line |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|