Article View: demon.tech.unix
Article #374Re: help
From: Phil Reynolds
Date: Sat, 08 Apr 2000 00:00
Date: Sat, 08 Apr 2000 00:00
19 lines
1172 bytes
1172 bytes
In article <K8sH4.767$5D.1658@ozemail.com.au>, "David" <dschmidt1@ozemail.com.au> writes: > Hey everyone, > > I'm writing a script file and need to know how to remove a specific line of > text from a .txt file. > > I can use grep $variable filename to get it but how can I > remove that line? One way would be to do this: grep -v $variable filename > newfile -- Phil Reynolds o ____ Internet: philr@hedgford.demon.co.uk |L_ \ / Web: http://www.hedgford.demon.co.uk/phil/ (_)- \/ Waltham 67, Emley Moor 69, Droitwich 79, Windows 95
Technical Details
Message-ID:
<n52nc8.i7s.ln@127.0.0.1>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<K8sH4.767$5D.1658@ozemail.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac57,a69137bb0b34a75d X-Google-Attributes: gidfac57,public From: philr@hedgford.demon.co.uk (Phil Reynolds) Subject: Re: help Date: 2000/04/08 Message-ID: <n52nc8.i7s.ln@127.0.0.1> X-Deja-AN: 608320203 X-NNTP-Posting-Host: hedgford.demon.co.uk:158.152.44.153 References: <K8sH4.767$5D.1658@ozemail.com.au> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 955190613 nnrp-09:28790 NO-IDENT hedgford.demon.co.uk:158.152.44.153 Mime-Version: 1.0 Newsgroups: demon.tech.unix