Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jul 2001 15:08:28 -0400
From:      parv <parv_@yahoo.com>
To:        Philipp Gaschutz <pg@philipp.de.com>
Cc:        Mikhail Teterin <mi@aldan.algebra.com>, questions@freebsd.org
Subject:   Re: grep and \t (\r, etc.)
Message-ID:  <20010719150828.A96584@moo.holy.cow>
In-Reply-To: <BOELLCONIBKCLEHPNCDDKEGACNAA.pg@philipp.de.com>; from pg@philipp.de.com on Thu, Jul 19, 2001 at 08:17:26PM %2B0200
References:  <200107191814.f6JIEwO34105@aldan.algebra.com> <BOELLCONIBKCLEHPNCDDKEGACNAA.pg@philipp.de.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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' <file>'
# egrep -v '\\r' <file>'


...didn't match the character right; but this seems to work...

# egrep -v '
' <file> # 
 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010719150828.A96584>