From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078617110648.tru64-unix-managers.marc@archive.invalid> From: Rock Pomerleau Date: Mon, 29 Sep 1997 13:04:14 +0000 To: tru64-unix-managers Subject: SUMMARY:A grep question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078617110648 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 ! ;) ;););););););););););););););););););););););););););););););););););););)