🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #18138

MPW Shell question

#18138
From: Herb Barad
Date: Fri, 14 Aug 1987 19:12
29 lines
1568 bytes
In MPW Shell, I am trying to select the first line in a file
(including the cr) and remove that line and all copies of that line.
The way I tried in MPW shell is the following:

Find /(?=dn)@1/
Replace -c inf /{@1}/ ''

The "d" is really the delta, and the "=" is the curvy equal sign, and
the "inf" is the infinity sign.

I would think that the 1st line would find (and select) the first line
from the cursor point (that contains at least 1 char) and the cr.  It
should assign this to the shell variable @1.  Then, I will replace all
occurances of the value of @1 with nothing.  This doesn't work.  I do
know that:

Find /?=dn/

will find and select the line (and cr) properly, but if I try

Find /(?=dn)@1/ ; echo "{@1}"

then the @1 is not assigned properly.  Any ideas as to what I'm doing
wrong.  Thanks in advance.


Herb Barad	[USC - Signal and Image Processing Institute]
email:	barad@brand.usc.edu	or
	...!sdcrdcf!oberon!brand!barad
Technical Details
Message-ID: <4021@oberon.USC.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!oberon!othello.usc.edu!barad

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!oberon!othello.usc.edu!barad
From: barad@othello.usc.edu (Herb Barad)
Newsgroups: comp.sys.mac
Subject: MPW Shell question
Message-ID: <4021@oberon.USC.EDU>
Date: Fri, 14-Aug-87 15:12:09 EDT
Article-I.D.: oberon.4021
Posted: Fri Aug 14 15:12:09 1987
Date-Received: Sun, 16-Aug-87 06:43:12 EDT
Sender: nobody@oberon.USC.EDU
Reply-To: barad@othello.usc.edu ()
Distribution: world
Organization: University of Southern California, Los Angeles
Lines: 29
Keywords: MPW Shell, regular expressions