From: Humpty <humphret@cs.winthrop.edu>
Subject: Detecting File Type
Date: 1998/05/20 [thread overview]
Message-ID: <Pine.OSF.3.96.980520184522.1577A-100000@thor.winthrop.edu> (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
reply other threads:[~1998-05-20 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox