*BSD News Article 70220


Return to BSD News archive

From: BORKI@zug.use.ch  (Reto Burkhalter)
Subject: Re: [S]: Script
Message-ID: <xspgPMD4F99aez2@borki.zug.use.ch>
Date: Mon,  3 Jun 96   3:45:19 GMT
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!news.sol.net!newspump.sol.net!uniserve!n2van.istar!van.istar!ott.istar!istar.net!winternet.com!nntp.primenet.com!news.cais.net!news.mathworks.com!news.kei.com!nntp.coast.net!oleane!tank.news.pipex.net!pipex!howland.reston.ans.net!surfnet.nl!swsbe6.switch.ch!scsing.switch.ch!dino.active.ch!hp.use.ch!turicum.use.ch!zug.use.ch
Organization: Turicum Communications
References: <xorMtMD4F99aRz1@borki.zug.use.ch> <4os9s6$g1@uriah.heep.sax.de> 
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: 25

>> J Wunsch 
>> 02.06.1996 
 
 
JW> Did you at least bother to _try_ my script?  I assume no, otherwise 
JW> you would have noticed that it's doing _exactly_ this.  (At least, 
JW> that's what it is supposed to.) 
 
I received two other possibilities via e-mail: 
 
#/bin/sh 
more $1 |grep -iv $2 >/tmp/.tmp 
mv /tmp/.tmp $1 
 
or 
 
#/bin/sh 
sed "/$2/d" $1 >/tmp/.tmp 
mv /tmp.tmp $1 
 
These scripts do exactly what I want them to do. 
 
 
Reto