home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!lllowen
- From: lllowen@netcom.com (lllowen)
- Subject: Re: How to tell if you have an ASCII file
- Message-ID: <1992Dec22.214642.26831@netcom.com>
- Keywords: ASCII
- Organization: Netcom Online Communications Services (408-241-9760 login: guest)
- References: <1992Dec22.152123.5852@Cadence.COM>
- Distribution: usa
- Date: Tue, 22 Dec 1992 21:46:42 GMT
- Lines: 23
-
- dew@rocky.cadence.com (Dave Wilson) writes:
- >
- >I would like to be able to quickly tell if the file I am opening is ASCII text
- >or some binary executable or data file. Is there any way of foolproof
- >way of doing this?
- >
-
- Maybe `file` is what you're looking for.
-
- % file .newsrc
- .newsrc: ascii text
-
- % file who
- who: sparc pure dynamically linked executable
-
- These are just some examples. `file` does a pretty good job at figuring
- out what the files are all about.
- --
-
- Lon Lowen Jr. | Wayne State University
- Netcom Online Communications | Detroit, Michigan
- lllowen@netcom.com | (lllowen@mts.cc.wayne.edu)
- -------------------------------------------------------------------------
-