delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/06/09:14:02

Message-Id: <200404061314.i36DDwvY023149@delorie.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <fergus AT bonhard DOT uklinux DOT net>
From: <fergus AT bonhard DOT uklinux DOT net>
To: <cygwin AT cygwin DOT com>
Cc: <fergus AT bonhard DOT uklinux DOT net>
Subject: Re: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files
Date: Tue, 6 Apr 2004 14:09:46 +0100
MIME-Version: 1.0
In-Reply-To: <87hdvx2zug.fsf@vzell-de.de.oracle.com>
X-UoD-Spam-Score: -4.7 (----)
X-UoD-Spam-Report: -------------------------------------------------- This message has been scanned by a SpamAssassin installation on the spam checking server hughnew at the University of Dundee. Content analysis details: (-4.7 hits, 5.0 required) 0.2 NO_REAL_NAME From: does not include a real name -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000]
X-UoD-Scan-Signature: 8c7f42d9480f59cec6c296d7a19d834b
Note-from-DJ: This may be spam

 
>> GNU grep detects binary files by looking for a '\0' byte. 

I know this is not strictly Cygwin-specific but it _is_ generated by the
preceding relevant recent comment in a busy thread:

Please can you tell me how to grep for an ASCII 00 (and for that matter
anything from ASCII 1B to 1F, and 7F to FF)?

(Or, I suppose in general for any of 00-FF though there's a "^A - ^Z" chunk
at the beginning and a alphanumeric chunk in the middle, that are easily
found by direct means.)

Fergus


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019