Hi Rony,

On Fri, Mar 25, 2011 at 6:29 PM, Rony wrote:
> I will check it out. There must be some grep option to look for absolute
> values.

Since you are storing each name on a line by itself, you can use:

grep -q "^$USER$" present

The ^ and $ match the beginning and the end of the line respectively.
Read the "Regular Expressions" section of the grep man page for more
information.

Regards
Osric Xavier Fernandes
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to