Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> 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_at_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 HuangReceived on Wed Nov 08 2000 - 14:06:34 CST
(yong321_at_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_at_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_at_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" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12"> <TITLE>RE: UNIX question: Can vi do this?</TITLE> </HEAD> <BODY> <P><FONT SIZE=2>shot from hip:</FONT> </P> <P><FONT SIZE=2>/Subject:[ ]*^"some topic"</FONT> </P> <P><FONT SIZE=2>it won't work, but vi search DOES understand</FONT> <BR><FONT SIZE=2>regexes...</FONT> </P> <P><FONT SIZE=2>Ross</FONT> </P> <P><FONT SIZE=2>-----Original Message-----</FONT> <BR><FONT SIZE=2>From: yong huang [<A HREF="mailto:yong321_at_yahoo.com">mailto:yong321_at_yahoo.com</A>]</FONT> <BR><FONT SIZE=2>Sent: Wednesday, November 08, 2000 2:49 PM</FONT> <BR><FONT SIZE=2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT SIZE=2>Subject: UNIX question: Can vi do this?</FONT> </P> <BR> <P><FONT SIZE=2>In vi, can my cursor jump to a line that contains a string but not another</FONT> <BR><FONT SIZE=2>string with one command? E.g., I can type "/Subject" (no quotes) to jump to the</FONT> <BR><FONT SIZE=2>next occurrence of "Subject". Now I want to jump to the line (anywhere on that</FONT> <BR><FONT SIZE=2>line is OK) that contains "Subject" but does not contain "some topic" in a text</FONT> <BR><FONT SIZE=2>file I'm reading. How can I do that? It seems the "/" command in vi doesn't</FONT> <BR><FONT SIZE=2>understand regular expressions. Thanks for help.</FONT> <BR><FONT SIZE=2> </FONT> <BR><FONT SIZE=2>--</FONT> <BR><FONT SIZE=2>Yong Huang</FONT> </P> <P><FONT SIZE=2>(yong321_at_yahoo.com)</FONT> </P> <P><FONT SIZE=2>__________________________________________________</FONT> <BR><FONT SIZE=2>Do You Yahoo!?</FONT> <BR><FONT SIZE=2>Thousands of Stores. Millions of Products. All in one Place.</FONT> <BR><FONT SIZE=2>http://shopping.yahoo.com/</FONT> <BR><FONT SIZE=2>-- </FONT> <BR><FONT SIZE=2>Please see the official ORACLE-L FAQ: http://www.orafaq.com</FONT> <BR><FONT SIZE=2>-- </FONT> <BR><FONT SIZE=2>Author: yong huang</FONT> <BR><FONT SIZE=2> INET: yong321_at_yahoo.com</FONT> </P> <P><FONT SIZE=2>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051</FONT> <BR><FONT SIZE=2>San Diego, California -- Public Internet access / Mailing Lists</FONT> <BR><FONT SIZE=2>--------------------------------------------------------------------</FONT> <BR><FONT SIZE=2>To REMOVE yourself from this mailing list, send an E-Mail message</FONT> <BR><FONT SIZE=2>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in</FONT> <BR><FONT SIZE=2>the message BODY, include a line containing: UNSUB ORACLE-L</FONT> <BR><FONT SIZE=2>(or the name of mailing list you want to be removed from). You may</FONT> <BR><FONT SIZE=2>also send the HELP command for other information (like subscribing).</FONT>