Message-Id: <10674.121479@fatcity.com> From: "Mohan, Ross" Date: Wed, 8 Nov 2000 15:06:34 -0500 Subject: RE: UNIX question: Can vi do this? This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C049BF.B4E00AA0 Content-Type: text/plain; charset="iso-8859-1" shot from hip: /Subject:[ ]*^"some topic" it won't work, but vi search DOES understand regexes... Ross -----Original Message----- From: yong huang [mailto:yong321@yahoo.com] Sent: Wednesday, November 08, 2000 2:49 PM To: Multiple recipients of list ORACLE-L Subject: UNIX question: Can vi do this? In vi, can my cursor jump to a line that contains a string but not another string with one command? E.g., I can type "/Subject" (no quotes) to jump to the next occurrence of "Subject". Now I want to jump to the line (anywhere on that line is OK) that contains "Subject" but does not contain "some topic" in a text file I'm reading. How can I do that? It seems the "/" command in vi doesn't understand regular expressions. Thanks for help. -- Yong Huang (yong321@yahoo.com) __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/ -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: yong huang INET: yong321@yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ------_=_NextPart_001_01C049BF.B4E00AA0 Content-Type: text/html; charset="iso-8859-1" RE: UNIX question: Can vi do this?

shot from hip:

/Subject:[ ]*^"some topic"

it won't work, but vi search DOES understand
regexes...

Ross

-----Original Message-----
From: yong huang [mailto:yong321@yahoo.com]
Sent: Wednesday, November 08, 2000 2:49 PM
To: Multiple recipients of list ORACLE-L
Subject: UNIX question: Can vi do this?


In vi, can my cursor jump to a line that contains a string but not another
string with one command? E.g., I can type "/Subject" (no quotes) to jump to the
next occurrence of "Subject". Now I want to jump to the line (anywhere on that
line is OK) that contains "Subject" but does not contain "some topic" in a text
file I'm reading. How can I do that? It seems the "/" command in vi doesn't
understand regular expressions. Thanks for help.
 
--
Yong Huang

(yong321@yahoo.com)

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: yong huang
  INET: yong321@yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).