View Single Post
Old 09-24-2005, 06:53 PM   #1 (permalink)
clifford
Junior Member
 
Join Date: Jun 2005
Location: Finland
Posts: 26
Default grep for exact match

Hey guys,

I am creating a new shell script for myself. I need to grep for exact match.
What I have is this:

who | grep '^cbs'

However this retrieves all the id which start with cbs but i want an exact match.

Any help appreciated././
clifford is offline   Reply With Quote
Sponsored Links