Command in vi - Block delete | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Unix/Linux Go Back    


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 !!

Command in vi - Block delete

UNIX for Dummies Questions & Answers


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-27-2009
videsh77 videsh77 is offline
Registered User
 
Join Date: Aug 2004
Last Activity: 22 April 2014, 2:17 PM EDT
Posts: 151
Thanks: 0
Thanked 0 Times in 0 Posts
Command in vi - Block delete

What command I should provide in Vi so block deletionis possible ?
Sponsored Links
    #2  
Old Unix and Linux 02-27-2009
hard aix hard aix is offline
Registered User
 
Join Date: Feb 2009
Last Activity: 2 March 2009, 12:41 PM EST
Location: Martinez, Taxifornia
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
at the top of the block you want to delete type "mx".
at the end of the block type "d`x".
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help in sed command (adding a blank line btw each block generated by pattern) frozensmilz Shell Programming and Scripting 2 01-07-2009 11:12 PM
sed command to delete row anhtt Shell Programming and Scripting 9 10-14-2008 04:47 AM
Delete a block of text delimited by blank lines when pattern is found gleu Shell Programming and Scripting 17 12-16-2007 10:30 PM
BAD SUPER BLOCK - Run fsck with alternate super block number admin wanabee HP-UX 1 09-08-2006 01:57 PM
using sed(?) to delete a block of text toast Shell Programming and Scripting 3 10-23-2005 01:30 AM



All times are GMT -4. The time now is 09:24 PM.