GNU bug report logs - #16844
Facing some issues while creating one regular expression

Previous Next

Package: grep;

Reported by: Machindra Dharmadhikari <machindra89 <at> gmail.com>

Date: Sat, 22 Feb 2014 16:07:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Machindra Dharmadhikari <machindra89 <at> gmail.com>
To: 16844 <at> debbugs.gnu.org
Subject: bug#16844: Facing some issues while creating one regular expression
Date: Sat, 22 Feb 2014 17:23:38 +0530
[Message part 1 (text/plain, inline)]
Hi Team,

Could you please help me to create one regular expression. I think this (*)
special character has not handled in egrep. because i have tried it many
ways but couldn't get required expression.

Could you please help me in this.

Problem : File contains following lines:
#* hard maxlogins 10
@Student hard maxlogins 10
* hard maxlogins 10
hard maxlogins 10
#* hard maxlogins 1024

I want to find only below line from above file. but * is not handling in
regular expression:
* hard maxlogins 10


10 can be replaced by any value. and hard can be - as well. I want to these
cases as well.

Thanks & Regards,
Machindra Dharmadhikari
[Message part 2 (text/html, inline)]

This bug report was last modified 11 years and 75 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.