rouben@math9.math.umbc.edu (Rouben Rostamian) (10/16/90)
In article <12529@chaph.usc.edu> wkfu@alcor.usc.edu (Wilson Fu) writes: >I want to do is to search a certain >string, then delete those lines containing that string. Here it is: :g/string/d -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County bitnet: rostamian@umbc Baltimore, MD 21228, U.S.A. internet: rostamian@umbc3.umbc.edu
felps@convex.com (Robert Felps) (10/16/90)
In <4159@umbc3.UMBC.EDU> rouben@math9.math.umbc.edu (Rouben Rostamian) writes: >In article <12529@chaph.usc.edu> wkfu@alcor.usc.edu (Wilson Fu) writes: >>I want to do is to search a certain >>string, then delete those lines containing that string. >Here it is: >:g/string/d Ah, yes, the new command "gred"! >Rouben Rostamian Telephone: (301) 455-2458 Useless comment, Robert Felps felps@convex.com Convex Computer Corp OS System Specialist 3000 Waterview Parkway Tech. Assistant Ctr Richardson, Tx. 75083 1(800) 952-0379
ronald@atcmp.nl (Ronald Pikkert) (10/17/90)
wkfu@alcor.usc.edu (Wilson Fu): > Does anyone know how to delete lines containing a certain ^^^^^^ > string in a file? You should after reading the vi/ex manual but try: :g/string/d - Ronald Pikkert E-mail: ronald@atcmp.nl @ AT Computing b.v. Tel: 080 - 566880 Toernooiveld 6525 ED Nijmegen