www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/10/02:09:21

From: fano AT norcov DOT com (Dr. Norman Fahrer)
Date: Wed, 9 Aug 1995 23:01:16 -0700
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: 'file' util for dos

Hi all,

I looked in the gnu-utils to find some port of
the 'file' utility of unix to the DOS environment,
but couldn't find it. 
My problem is that I want the find out if a 
given file is either binary or text. 

More precise :

I use the DOS ported awk and want to make sure
that the file it works on is NOT a binary but
a TEXT file, so not to run into the 'out of memory'
problem that occures when the record which is read
in is the entire file.

What would be a good way to prevent that the awk
is fed with a NOT-text file (under DOS) ? 

Thanks to all for your kind help !
Norman

-- 

          
	                     \|/
                            (o o)
           _____________oOO__(_)__OOo_________________
           | The mind of a bigot is like the pupil of |
           | the eye : the more light you shine on it |
           | the more it contracts.                   | 
           ---------------ooo--ooo---------------------

                       Dr. Norman Fahrer
                       Norcov Research
                       fano AT norcov DOT com




- Raw text -


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