This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Bogus assumption prevents d2u/u2d/conv/etal working on mixed files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]