File "type"

Paul Chamberlain tif at doorstop.austin.ibm.com
Tue Sep 25 01:35:21 AEST 1990


In article <171 at alchemy.UUCP> bbs at alchemy.UUCP (BBS Administration) writes:
>	Could someone explain how the command "file" works? Specifically, I am
>writing a program that allows users to navigate their $HOME directory and ...

I agree that reading in the first block and making basic sanity checks is
probably the best thing to do to verify the sanity of editing it.  However,
if you desire any more detail, I would seriously consider reading the output
of the "file" command itself.  Or if you have some deep reason to avoid that,
get one of the PD implementations of "file" and suck it into your source.

Paul Chamberlain | I do NOT represent IBM         tif at doorstop, sc30661 at ausvm6
512/838-7008     | ...!cs.utexas.edu!ibmaus!auschs!doorstop.austin.ibm.com!tif



More information about the Comp.unix.programmer mailing list