From unknown Wed Jun 18 23:16:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16844: Facing some issues while creating one regular expression Resent-From: Machindra Dharmadhikari Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Sat, 22 Feb 2014 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16844 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 16844@debbugs.gnu.org X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13930852022446 (code B ref -1); Sat, 22 Feb 2014 16:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Feb 2014 16:06:42 +0000 Received: from localhost ([127.0.0.1]:35839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHF6A-0000dF-9u for submit@debbugs.gnu.org; Sat, 22 Feb 2014 11:06:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48193) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHB9Q-0000vI-Cv for submit@debbugs.gnu.org; Sat, 22 Feb 2014 06:53:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHB9K-0007y4-3Q for submit@debbugs.gnu.org; Sat, 22 Feb 2014 06:53:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHB9J-0007xx-Vt for submit@debbugs.gnu.org; Sat, 22 Feb 2014 06:53:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHB9J-00050B-2l for bug-grep@gnu.org; Sat, 22 Feb 2014 06:53:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHB9I-0007xe-4w for bug-grep@gnu.org; Sat, 22 Feb 2014 06:53:41 -0500 Received: from mail-ea0-x242.google.com ([2a00:1450:4013:c01::242]:54134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHB9H-0007xW-TQ for bug-grep@gnu.org; Sat, 22 Feb 2014 06:53:40 -0500 Received: by mail-ea0-f194.google.com with SMTP id o10so1101737eaj.9 for ; Sat, 22 Feb 2014 03:53:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1B0XRzmCGEh/bdtvFk5nbcm42GEZRWA0Y+0KEuUfRVY=; b=oRN1vT4iP7c9+5E9NZflvP0A9iMXI8YLC2BXvS1Y8okfG9/j8QHVgi3U3U5Q55rjbu 6CcSNW5cVzlZ0Up6AIRNJHRFnAvhK4yCWIC8xE/dhJaZ4l8Y3o274xO3QpJjUh6PrsFs x9gxGM1bSMEe3c4GvC9k2JQrmf1d6/LwudXybVWgP+S73rTLtzCACqs9/Q2Fx63y/QTo 4HxOXMHKKuXszFZcmZ1+ugCsNW8daLjdRJNC8ktoLc4RVz5y2994sPical4CP25bDj6a tbzp5gxUFWZ3C6XnFFapGT/RFYS4XT1rb0X15U0sbPmuMuX2SXrlx1O2riOmlXrfxZIP zDMQ== MIME-Version: 1.0 X-Received: by 10.15.65.68 with SMTP id p44mr13748424eex.63.1393070018421; Sat, 22 Feb 2014 03:53:38 -0800 (PST) Received: by 10.14.105.130 with HTTP; Sat, 22 Feb 2014 03:53:38 -0800 (PST) Date: Sat, 22 Feb 2014 17:23:38 +0530 Message-ID: From: Machindra Dharmadhikari Content-Type: multipart/alternative; boundary=001a11c3f37298698e04f2fd638a X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Sat, 22 Feb 2014 11:06:37 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --001a11c3f37298698e04f2fd638a Content-Type: text/plain; charset=ISO-8859-1 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 --001a11c3f37298698e04f2fd638a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Team,

Could you please= help me to create one regular expression. I think this (*) special charact= er has not handled in egrep. because i have tried it many ways but couldn&#= 39;t get required expression.

Could you please help me in this.

Problem : Fi= le contains following lines:
#* hard maxlogins 10
@Student hard maxlo= gins 10
* hard maxlogins 10
hard maxlogins 10
#* hard maxlogins 10= 24

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


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

Thanks & Regards,
Machindra Dharmadhikari

<= /div> --001a11c3f37298698e04f2fd638a-- From unknown Wed Jun 18 23:16:36 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Machindra Dharmadhikari Subject: bug#16844: closed (Re: Facing some issues while creating one regular expression) Message-ID: References: <531B6E68.4030205@cs.ucla.edu> X-Gnu-PR-Message: they-closed 16844 X-Gnu-PR-Package: grep Reply-To: 16844@debbugs.gnu.org Date: Sat, 08 Mar 2014 19:25:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1394306703-29403-1" This is a multi-part message in MIME format... ------------=_1394306703-29403-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #16844: Facing some issues while creating one regular expression which was filed against the grep package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 16844@debbugs.gnu.org. --=20 16844: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16844 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1394306703-29403-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 16844-done) by debbugs.gnu.org; 8 Mar 2014 19:24:28 +0000 Received: from localhost ([127.0.0.1]:57003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WMMrD-0007dD-O2 for submit@debbugs.gnu.org; Sat, 08 Mar 2014 14:24:27 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:41674) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WMMrB-0007d5-N9 for 16844-done@debbugs.gnu.org; Sat, 08 Mar 2014 14:24:26 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 55D8E39E8013 for <16844-done@debbugs.gnu.org>; Sat, 8 Mar 2014 11:24:25 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0N6JCo-ETqsK for <16844-done@debbugs.gnu.org>; Sat, 8 Mar 2014 11:24:25 -0800 (PST) Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 0794939E8008 for <16844-done@debbugs.gnu.org>; Sat, 8 Mar 2014 11:24:25 -0800 (PST) Message-ID: <531B6E68.4030205@cs.ucla.edu> Date: Sat, 08 Mar 2014 11:24:24 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: 16844-done@debbugs.gnu.org Subject: Re: Facing some issues while creating one regular expression Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16844-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) The regular expression '\*' matches the string '*'. ------------=_1394306703-29403-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Feb 2014 16:06:42 +0000 Received: from localhost ([127.0.0.1]:35839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHF6A-0000dF-9u for submit@debbugs.gnu.org; Sat, 22 Feb 2014 11:06:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48193) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHB9Q-0000vI-Cv for submit@debbugs.gnu.org; Sat, 22 Feb 2014 06:53:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHB9K-0007y4-3Q for submit@debbugs.gnu.org; Sat, 22 Feb 2014 06:53:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHB9J-0007xx-Vt for submit@debbugs.gnu.org; Sat, 22 Feb 2014 06:53:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHB9J-00050B-2l for bug-grep@gnu.org; Sat, 22 Feb 2014 06:53:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHB9I-0007xe-4w for bug-grep@gnu.org; Sat, 22 Feb 2014 06:53:41 -0500 Received: from mail-ea0-x242.google.com ([2a00:1450:4013:c01::242]:54134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHB9H-0007xW-TQ for bug-grep@gnu.org; Sat, 22 Feb 2014 06:53:40 -0500 Received: by mail-ea0-f194.google.com with SMTP id o10so1101737eaj.9 for ; Sat, 22 Feb 2014 03:53:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1B0XRzmCGEh/bdtvFk5nbcm42GEZRWA0Y+0KEuUfRVY=; b=oRN1vT4iP7c9+5E9NZflvP0A9iMXI8YLC2BXvS1Y8okfG9/j8QHVgi3U3U5Q55rjbu 6CcSNW5cVzlZ0Up6AIRNJHRFnAvhK4yCWIC8xE/dhJaZ4l8Y3o274xO3QpJjUh6PrsFs x9gxGM1bSMEe3c4GvC9k2JQrmf1d6/LwudXybVWgP+S73rTLtzCACqs9/Q2Fx63y/QTo 4HxOXMHKKuXszFZcmZ1+ugCsNW8daLjdRJNC8ktoLc4RVz5y2994sPical4CP25bDj6a tbzp5gxUFWZ3C6XnFFapGT/RFYS4XT1rb0X15U0sbPmuMuX2SXrlx1O2riOmlXrfxZIP zDMQ== MIME-Version: 1.0 X-Received: by 10.15.65.68 with SMTP id p44mr13748424eex.63.1393070018421; Sat, 22 Feb 2014 03:53:38 -0800 (PST) Received: by 10.14.105.130 with HTTP; Sat, 22 Feb 2014 03:53:38 -0800 (PST) Date: Sat, 22 Feb 2014 17:23:38 +0530 Message-ID: Subject: Facing some issues while creating one regular expression From: Machindra Dharmadhikari To: bug-grep@gnu.org Content-Type: multipart/alternative; boundary=001a11c3f37298698e04f2fd638a X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 22 Feb 2014 11:06:37 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --001a11c3f37298698e04f2fd638a Content-Type: text/plain; charset=ISO-8859-1 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 --001a11c3f37298698e04f2fd638a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Team,

Could you please= help me to create one regular expression. I think this (*) special charact= er has not handled in egrep. because i have tried it many ways but couldn&#= 39;t get required expression.

Could you please help me in this.

Problem : Fi= le contains following lines:
#* hard maxlogins 10
@Student hard maxlo= gins 10
* hard maxlogins 10
hard maxlogins 10
#* hard maxlogins 10= 24

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


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

Thanks & Regards,
Machindra Dharmadhikari

<= /div> --001a11c3f37298698e04f2fd638a-- ------------=_1394306703-29403-1--