[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Grepping only text files



Peter Scott <Peter@PSDT.com> writes:

> At 04:59 PM 6/29/99 -0400, Michael G Schwern wrote:
> 
> >Unfortunately, file(1) returns its information in a less than useful form:
> >
> >$ file *
> >FWP:        English text
> 
> I was getting ready to respond with a kinder, gentler, RTFM, but I couldn't 
> find any trace of what I was looking for in CPAN: I was *sure* there was a 
> module encapsulating file(1) and /etc/magic.  But a WAIT search for 'magic' 
> in synopsis and text turned up nothing.  Have I missed it, or is this an 
> opportunity for some bright programmer to make a contribution?
> 

I'm pretty sure there used to be a perl4 `file' replacement.  There's
File::MMagic on CPAN, which might be useful.

-- 
Ariel Scolnicov        |"GCAAGAATTGAACTGTAG"            |ariels@compugen.co.il
Compugen Ltd.          |Tel: +972-2-6795059 (Jerusalem)	\  NEW IMPROVED URL!
72 Pinhas Rosen St.    |Tel: +972-3-7658520 (Main office)`--------------------
Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555  http://3w.compugen.co.il/~ariels

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org