Date: Mon, 15 Apr 2002 14:46:09 -0400 From: "Morse, Richard E." <REMORSE@PARTNERS.ORG> To: "'lcroker@megared.net.mx'" <lcroker@megared.net.mx>, freebsd-questions@FreeBSD.ORG Subject: RE: GREP ! Message-ID: <375F68784081D511908A00508BE3BB1701EF1950@phsexch22.mgh.harvard.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?375F68784081D511908A00508BE3BB1701EF1950>