Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Feb 2005 03:49:14 +0100
From:      Anthony Atkielski <atkielski.anthony@wanadoo.fr>
To:        freebsd-questions@freebsd.org
Subject:   Re: Another grep question
Message-ID:  <1913197329.20050208034914@wanadoo.fr>
In-Reply-To: <200502071802.19719.reso3w83@verizon.net>
References:  <1667502496.20050208025619@wanadoo.fr> <200502071802.19719.reso3w83@verizon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael C. Shultz writes:

> I made a text file named test.log containing:
>
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> grep -R "\0x93" /www/htdocs
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
> aj[[CFPWJJVCVMLKFD
>
> the result of:
>
>  grep -R "\0x93" test.log
>
> is:
>
> grep -R "\0x93" /www/htdocs
>
>
> Maybe you should test again????

I'm looking for the hex character 93, which is an opening double
quotation mark in the Windows character set, not the literal string
"\0x93".  Unless I'm mistaken, \0x93 in a regular expression means "the
character whose hex value is 93."

-- 
Anthony




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