Another grep question

Anthony Atkielski atkielski.anthony at wanadoo.fr
Mon Feb 7 18:49:16 PST 2005


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




More information about the freebsd-questions mailing list