Hi,
Am Samstag, den 26.03.2011, 23:18 +0530 schrieb Osric Fernandes:
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.
as discussed in the meeting, this is not sufficient. Safer would be $ fgrep -qx "$USER" present
Greetings, Joachim