From owner-freebsd-questions Thu Jul 19 12: 4:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc24.worldnet.att.net (mtiwmhc24.worldnet.att.net [204.127.131.49]) by hub.freebsd.org (Postfix) with ESMTP id 06AAF37B409 for ; Thu, 19 Jul 2001 12:04:41 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.101.235.74]) by mtiwmhc24.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010719190435.TSNE3707.mtiwmhc24.worldnet.att.net@worldnet.att.net>; Thu, 19 Jul 2001 19:04:35 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id E9B8550BC5; Thu, 19 Jul 2001 15:08:28 -0400 (EDT) Date: Thu, 19 Jul 2001 15:08:28 -0400 From: parv To: Philipp Gaschutz Cc: Mikhail Teterin , questions@freebsd.org Subject: Re: grep and \t (\r, etc.) Message-ID: <20010719150828.A96584@moo.holy.cow> Mail-Followup-To: Philipp Gaschutz , Mikhail Teterin , questions@freebsd.org References: <200107191814.f6JIEwO34105@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from pg@philipp.de.com on Thu, Jul 19, 2001 at 08:17:26PM +0200 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 on Jul 19 14:52, i got this from Philipp... > Hi! > > > find . -type -name '*.htm*' | xargs grep -E '\r$' > > > > just keeps listing all lines which end with ``r''... Any clues? > > Have you tried to replace ' with " ? > or ... \\r ? > well i had a script logfile handy, and both of these... # egrep -v '\r' ' # egrep -v '\\r' ' ...didn't match the character right; but this seems to work... # egrep -v ' ' # is generated via ctrl-v,ctrl-m ...that printed only script start & end times. also, perl can use '\cM' to represent ctrl-v,ctrl-m character... -- so, do you like word games or scrabble? - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message