Re: 'Inverse' chmod?
Subject: Re: 'Inverse' chmod?
Date: Fri, Jul 16, 1999 at 01:20:15PM -0400
In reply to:William T Wilson
Quoting William T Wilson(fluffy@snurgle.org):
> On Fri, 16 Jul 1999, Marc Mongeon wrote:
>
> > This also works, and might be a little more readable(?)
> >
> > eval "perl -e 'printf \"%#o\", ((stat(\"$1\"))[2] & 0x1ff)'"
>
> Uhm... I dunno if this is too easy, or what, but what's wrong with ls -l?
>
Someone has a problem with figuring out what this means in octal.
-rwxr-xr-x .
Go figure!
--
"Imagine if every Thursday your shoes exploded if you tied them the
usual way. This happens to us all the time with computers, and nobody
thinks of complaining."
-- Jeff Raskin, interviewed in Doctor Dobb's Journal
_______________________________________________________
Wayne T. Topa <wtopa@mindspring.com>
Reply to: