* Detecting File Type
@ 1998-05-20 4:00 Humpty
0 siblings, 0 replies; only message in thread
From: Humpty @ 1998-05-20 4:00 UTC (permalink / raw)
My boss says that he's seen in some institutions the ability to determine
the file type of a file, and if it isn't a text file it doesn't get
printed. I want to know if this is possible. I know the file command can
tell me the file type of a file, but how would I separate the text files
from the data files? I've looked in the /etc/magic file but can't see any
string that I could match text files with. For instance, I get "English
Text" for a text file, but the word text doesn't appear in the description
for a C program.
Am I going the wrong route, is there a better way of doing this besides
using the file command?
..._Tim_...
--=[I know everything...just not at the same time.]=--
http://www.shack.org/zzhumphreyt
zzhumphreyt@kagi.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-20 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-20 4:00 Detecting File Type Humpty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox