tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* grep question
@ 1999-08-25 15:44 Warren, John H.
  0 siblings, 0 replies; 2+ messages in thread
From: Warren, John H. @ 1999-08-25 15:44 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01BEEF10.B6AC1A40", Size: 1312 bytes --]

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_01BEEF10.B6AC1A40
Content-Type: text/plain;
	charset="iso-8859-1"

I am trying to anchor my regular expression ( I know I can do this in perl)
for a grep command.  I only see ^ and $ anchors in the man page.  How can I
block the grep expression to match exactly (i.e.  348 returns only 348, not
3481, 2348, etc..).
Thanks.


------_=_NextPart_001_01BEEF10.B6AC1A40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>grep question</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am trying to anchor my regular =
expression ( I know I can do this in perl) for a grep command.&nbsp; I =
only see ^ and $ anchors in the man page.&nbsp; How can I block the =
grep expression to match exactly (i.e.&nbsp; 348 returns only 348, not =
3481, 2348, etc..).</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BEEF10.B6AC1A40--

^ permalink raw reply	[flat|nested] 2+ messages in thread

* grep question
@ 2001-06-12 19:17 bac
  0 siblings, 0 replies; 2+ messages in thread
From: bac @ 2001-06-12 19:17 UTC (permalink / raw)
  To: tru64-unix-managers

In a file that contains multiple instances of the
following type of text, I only want to extract the
numbers.... (2 lines after 'CPU Summary')


# CPU SUMMARY
# USER  SYS IDLE WAIT  INTR  SYSC    CS RUNQ  AVG5
AVG30 AVG60 FORK VFORK
     1    2   97    0    25  6855   631    0  0.11 
0.23  0.22 0.60 

For example I only want: 
     1    2   97    0    25  6855   631    0  0.11 
0.23  0.22 0.60 

How can I do this?
Thanks

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-12 19:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-12 19:17 grep question bac
  -- strict thread matches above, loose matches on Subject: below --
1999-08-25 15:44 Warren, John H.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox