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