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

-- 
Joachim "nomeata" Breitner
  mail: [email protected] | ICQ# 74513189 | GPG-Key: 4743206C
  JID: [email protected] | http://www.joachim-breitner.de/
  Debian Developer: [email protected]

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to