If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > VI Questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-04, 09:54
funkymike funkymike is offline
Registered User
 
Join Date: Apr 2004
Location: Cumming, GA
Posts: 2
Post VI Questions

I have a question regarding VI (Virtual Editor) on Unix. I know there is a way to do it, but what is the command for cutting a line out in VI? I know we use 'yy' for yanking a copy of the line, but I need to know how to actually cut a line and place it in another location. Thanks in advance for your help.
Reply With Quote
  #2 (permalink)  
Old 04-09-04, 10:02
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
dd Delete line
P Insert line before cusor
p Insert line after cusor
__________________
Jean-Pierre.
Reply With Quote
  #3 (permalink)  
Old 04-09-04, 10:15
funkymike funkymike is offline
Registered User
 
Join Date: Apr 2004
Location: Cumming, GA
Posts: 2
Quote:
Originally posted by aigles
dd Delete line
P Insert line before cusor
p Insert line after cusor
thanks alot!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On