home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 14896 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!lllowen
  3. From: lllowen@netcom.com (lllowen)
  4. Subject: Re: How to tell if you have an ASCII file
  5. Message-ID: <1992Dec22.214642.26831@netcom.com>
  6. Keywords: ASCII
  7. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  8. References: <1992Dec22.152123.5852@Cadence.COM>
  9. Distribution: usa
  10. Date: Tue, 22 Dec 1992 21:46:42 GMT
  11. Lines: 23
  12.  
  13. dew@rocky.cadence.com (Dave Wilson) writes:
  14. >
  15. >I would like to be able to quickly tell if the file I am opening is ASCII text
  16. >or some binary executable or data file.  Is there any way of foolproof 
  17. >way of doing this?
  18. >
  19.  
  20. Maybe `file` is what you're looking for.
  21.  
  22. % file .newsrc
  23. .newsrc:       ascii text
  24.  
  25. % file who
  26. who:           sparc pure dynamically linked executable
  27.  
  28. These are just some examples.  `file` does a pretty good job at figuring
  29. out what the files are all about.
  30. -- 
  31.  
  32. Lon Lowen Jr.                        |  Wayne State University
  33. Netcom Online Communications         |  Detroit, Michigan
  34. lllowen@netcom.com                   |  (lllowen@mts.cc.wayne.edu)
  35. -------------------------------------------------------------------------
  36.