Date: Mon, 7 Feb 2005 18:12:37 -0800 From: "Giorgos Keramidas" <keramida@linux.gr> To: <freebsd-questions@freebsd.org> Subject: RE: Another grep question Message-ID: <D9FB5D8199759D4D997460C5C0A1C11C013285BE@exch-dc2.bytemobile.com> In-Reply-To: <1667502496.20050208025619@wanadoo.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
Anthony Atkielski wrote: > Does anyone know why > > grep -R "\0x93" /www/htdocs > > turns up only binary files, even when I know there are text > files in the directory that contain this character? Is > there something special about the way I specify the search > string that causes grep to behave differently? When I > specify an 8-bit character like this alone for a > search, it finds only binary files, even though this is a text > character--as if it is looking at the search string and > deciding that I want to search only binary files. It may not be related to what you are seeing, but grep(1) is locale-aware. What it considers a "text" character depends on the current locale settings. In my account, which has a Greek locale setup, it will consider all Greek 8-bit characters as text. This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, do not forward this email to any other person, delete this e-mail and destroy all copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D9FB5D8199759D4D997460C5C0A1C11C013285BE>