delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/06/11:28:35

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
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files
Date: Tue, 6 Apr 2004 16:20:21 +0100
MIME-Version: 1.0
In-reply-to: <NUTMEGfqbGIxpVXI14A0000038c@NUTMEG.CAM.ARTIMI.COM>
Message-ID: <NUTMEGhx94JJ6tYSp7Y00000391@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 06 Apr 2004 15:20:22.0515 (UTC) FILETIME=[ADC91430:01C41BEA]

> -----Original Message-----
> From: cygwin-owner On Behalf Of fergus
> Sent: 06 April 2004 14:10

> >> 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 

grep .* filename | grep "Binary file .* matches"

will kinda do that!

>(and for 
> that matter
> anything from ASCII 1B to 1F, and 7F to FF)?

Trickier.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
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