*BSD News Article 69156


Return to BSD News archive

From: BORKI@zug.use.ch  (Reto Burkhalter)
Subject: [S]: Script
Message-ID: <xorMtMD4F99aRz1@borki.zug.use.ch>
Date: Wed, 22 May 96   2:24:45 GMT
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!garlic.com!news.scruz.net!kithrup.com!news.Stanford.EDU!agate!spool.mu.edu!usenet.eel.ufl.edu!bofh.dot!news.mathworks.com!zombie.ncsc.mil!nntp.coast.net!swidir.switch.ch!scsing.switch.ch!dino.active.ch!hp.use.ch!turicum.use.ch!zug.use.ch
Organization: Turicum Communications
X-Gateway: ZCONNECT UE turicum.use.ch [PolyNet Amiga RFC/ZC V4.23 no. 599198gr45qW-017]
X-Mailer: MicroDot 1.10 [REGISTERED 004f99]
Newsgroups: comp.unix.bsd.freebsd.misc
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 23

Hy Everyone... 
 
 
I'm looling for a shell script or command line syntax in 
order to delete lines in a file with a specific content. 
I want to delete member entries in a database without having 
to invoke an editor. 
 
e.g. database file 
 
foo xxyy 
bar yyzz 
sec zzaa 
 
 
%script <file> <entry> ; %script database foo -> deletes the 
first entry (line) in the database. 
 
Who can help me?? 
 
 
Reto