From owner-freebsd-questions Mon Apr 15 11:46:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from PHSEXCHICO2.Partners.org (phsexchico2.partners.org [170.223.254.20]) by hub.freebsd.org (Postfix) with ESMTP id 9E3BC37B404 for ; Mon, 15 Apr 2002 11:46:12 -0700 (PDT) Received: by phsexchico2.partners.org with Internet Mail Service (5.5.2650.21) id <2ZZZD51W>; Mon, 15 Apr 2002 14:46:11 -0400 Message-ID: <375F68784081D511908A00508BE3BB1701EF1950@phsexch22.mgh.harvard.edu> From: "Morse, Richard E." To: "'lcroker@megared.net.mx'" , freebsd-questions@FreeBSD.ORG Subject: RE: GREP ! Date: Mon, 15 Apr 2002 14:46:09 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Lu!s Croker [mailto:lcroker@matrix.corp.megared.net.mx] wrote: > Hi, I need to filter a specific line of /etc/passwd, > but grep can > not do it... for example, if I want to filter the line of "luis" user, > grep filter every lines that contain luis word, (luis.croker, > luis-alberto, etc.). Man specifics -x parameter for exact > matches... but > it doesnt work, if I use it, no one line is filtered... How can I > filter a specific line?, Any Idea or another method? If you know the characters before and after the word you want, just include them in the regexp... HTH, Ricky To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message