Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: UNIX question: Can vi do this?
I just tried the following, and it worked:
/Subject*[^some topic]
(I used different parameters, but that should work for you...)
HTH,
Diana
-----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:13:30 CST