Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.hawaii.edu!ames!agate!howland.reston.ans.net!newsfeed.internetmci.com!news.mathworks.com!news2.mathworks.com!newscaster-1.mcast.net!cs.tu-berlin.de!uni-erlangen.de!news.tu-chemnitz.de!irz401!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: [S]: Script Date: 2 Jun 1996 14:52:54 GMT Organization: Private BSD site, Dresden Lines: 31 Message-ID: <4os9s6$g1@uriah.heep.sax.de> References: <xorMtMD4F99aRz1@borki.zug.use.ch> <4oc007$6u0@uriah.heep.sax.de> <xreooMD4F99aez2@borki.zug.use.ch> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E BORKI@zug.use.ch (Reto Burkhalter) wrote: > JW> Why don't you wanna use an editor? :) (This is, of course, untested, > JW> i hope i didn't forget anyhting.) > > Because I want to do it automatically (reorg a member database) and > I don't want to search every single entry... You've seen the smiley? Actually, ``ed'' _is_ an editor. Of course, this is Unix, and that's where you can make everything automagical, including editors. > JW> #!/bin/sh > JW> > JW> usage() > > Seems it's doing something other... > > I want to delete every line in the file matching an expression like > a name (e.g. Burkhalter). Did you at least bother to _try_ my script? I assume no, otherwise you would have noticed that it's doing _exactly_ this. (At least, that's what it is supposed to.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)