home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3514 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!convex!convex!tchrist
  3. From: Tom Christiansen <tchrist@convex.COM>
  4. Subject: Re: Octal chmod status
  5. Originator: tchrist@pixel.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1992Aug18.181609.8988@news.eng.convex.com>
  8. Date: Tue, 18 Aug 1992 18:16:09 GMT
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. References: <MERLYN.92Aug9093023@romulus.reed.edu> <22411@sybase.sybase.com> <Bt0EEL.H1q@mudos.ann-arbor.mi.us>
  11. Nntp-Posting-Host: pixel.convex.com
  12. Organization: CONVEX Realtime Development, Colorado Springs, CO
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 16
  17.  
  18. From the keyboard of mju@mudos.ann-arbor.mi.us (Marc Unangst):
  19. :Boy, all the solutions that have been offered so far have been pretty
  20. :gross.  Might I suggest this one?
  21.  
  22. You might, and people might even use it if they want to lug
  23. another huge a.out and overly large and misplaceable foo.c 
  24. around with them wherever they go.  I'd just use this:
  25.  
  26.     perl -e 'printf("%04o\n", (stat($ARGV[0]))[2] & 07777)'
  27.  
  28. --tom
  29. -- 
  30.     Tom Christiansen      tchrist@convex.com      convex!tchrist
  31.  
  32. "The number of UNIX installations has grown to 10, with more expected."
  33.     - _The UNIX Programmer's Manual_, Second Edition, June, 1972.
  34.