SUMMARY:A grep question

From: Rock Pomerleau <moroco_at_total.net>
Date: Mon, 29 Sep 1997 13:04:14

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 ! ;)
;););););););););););););););););););););););););););););););););););););)
Received on Mon Sep 29 1997 - 19:16:50 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT