tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY:A grep question
@ 1997-09-29 13:04 Rock Pomerleau
  0 siblings, 0 replies; only message in thread
From: Rock Pomerleau @ 1997-09-29 13:04 UTC (permalink / raw)
  To: tru64-unix-managers

My question was:

I have a file who looks like the following:

DSQ_1
DSQ_2
DSQ_10
DSQ_11

I want to extract the line DSQ_1 only only that line.

If I use grep 'DSQ_1' I get

DSQ_1
DSQ_10
DSQ_11

How can can I use grep to only show DSQ_1.

***************************************************************************
Thanks to all who replied

I try this solution and it works very well:
grep -w '^DSQ_1' files.tmp
;););););););););););););););););););););););););););););););););););););)
;) HOW TO RESOLVE A PROBLEM !                                           ;)
;););););););););););););););););););););););););););););););););););););)
select case (Problem)
  case no_problem,small_problem
       call(ME)
  case Medium_problem
       call(SOMEONE_ELSE)
  case BIG_problem
       call(GOD)
  case HUGE_PROBLEM
       call(GOOD_LUCK)
;););););););););););););););););););););););););););););););););););););)
;) Have a nice day !                                                    ;)
;););););););););););););););););););););););););););););););););););););)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-09-29 13:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-29 13:04 SUMMARY:A grep question Rock Pomerleau

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