Article View: comp.sys.next.misc
Article #786Re: filtering a text file
From: Volker Herminghaus-Shirai
Date: Thu, 06 Aug 1992 10:29
Date: Thu, 06 Aug 1992 10:29
26 lines
1438 bytes
1438 bytes
In article <BsFuBt.D8I@news.cso.uiuc.edu> Melman@uiuc.edu (Melvin Wilson) writes: > Hello, > > Help! > > I have a very simple (and for the more experienced, stupid) question. > > From the command prompt on a NeXT how could I search a text file and remove > every instance of a particular expression in that text file? I've tried but I > cannot figure out the apropriate format of the command. type <inputfile >outputfile sed 's/old/new/g' replacing inputfile and outputfile with their respective values. The expression "old" will be replaced by "new". If old or new contain any / characters, use a different character in the sed expression instead, like sed 's:old:new:g' -- Volker Herminghaus-Shirai (vhs@darkcube.radig.de) Computer industry: Industry in which the number of units sold of any given product is inversely proportional to its technical excellence. See also: MS-DOS, Windows, IBM-PC, X, QWERTY, 80x86.
Technical Details
Message-ID:
<1992Aug6.102953.8775@darkcube.radig.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!incom!orfeo!darkcube!vhsReferences:
<BsFuBt.D8I@news.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.misc Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf.sub.org!incom!orfeo!darkcube!vhs From: vhs@darkcube.radig.de (Volker Herminghaus-Shirai) Subject: Re: filtering a text file Message-ID: <1992Aug6.102953.8775@darkcube.radig.de> Sender: vhs@darkcube.radig.de (Volker Herminghaus-Shirai) Reply-To: vhs@darkcube.radig.de References: <BsFuBt.D8I@news.cso.uiuc.edu> Date: Thu, 6 Aug 92 10:29:53 GMT Lines: 26