Article View: comp.os.msdos.misc
Article #4121Re: Grep question
From: Al Aab
Date: Mon, 22 Mar 1999 00:00
Date: Mon, 22 Mar 1999 00:00
12 lines
1604 bytes
1604 bytes
in sed u can do it in one process
sed -e "/this/d" -e "/that/d" myfile > outfile
in grep in two processes:
grep -v "this" myfile | grep -v "that" > outfile
--
=-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
al aab, seders moderator sed u soon
it is not zat we do not see the s o l u t i o n
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
Technical Details
Message-ID:
<F90F5y.4sI.0.sheppard@torfree.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<yw%F2.4077$SZ5.2411@news.rdc1.tx.home.com> <7ca9on$kl7$1@news-1.news.gte.net> <zu2G2.4106$SZ5.2385@news.rdc1.tx.home.com> <7cb4c8$1ok@news-central.tiac.net> <XbdG2.4162$SZ5.2618@news.rdc1.tx.home.com> <36F61484.3A281537@usa.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f6aa,1ef924693fa8631e,start X-Google-Attributes: gid10f6aa,public X-Google-Thread: 10f688,1ef924693fa8631e,start X-Google-Attributes: gid10f688,public X-Google-Thread: 16ea23,1ef924693fa8631e,start X-Google-Attributes: gid16ea23,public X-Google-Thread: ff2c9,1ef924693fa8631e,start X-Google-Attributes: gidff2c9,public X-Google-Thread: 10c853,1ef924693fa8631e,start X-Google-Attributes: gid10c853,public X-Google-Thread: f71eb,1ef924693fa8631e,start X-Google-Attributes: gidf71eb,public From: af137@torfree.net (Al Aab) Subject: Re: Grep question Date: 1999/03/22 Message-ID: <F90F5y.4sI.0.sheppard@torfree.net> X-Deja-AN: 457665376 References: <yw%F2.4077$SZ5.2411@news.rdc1.tx.home.com> <7ca9on$kl7$1@news-1.news.gte.net> <zu2G2.4106$SZ5.2385@news.rdc1.tx.home.com> <7cb4c8$1ok@news-central.tiac.net> <XbdG2.4162$SZ5.2618@news.rdc1.tx.home.com> <36F61484.3A281537@usa.net> Organization: Toronto Free-Net Newsgroups: comp.os.msdos.misc,comp.os.msdos.programmer,de.alt.binaries.msdos.d,alt.comp.editors.batch,fr.comp.os.msdos,fj.os.msdos