Re: Retrieving numeric filemode

2004-03-09 Thread Mark
- Original Message - 
From: "Dan Nelson" <[EMAIL PROTECTED]>
To: "Mark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, March 09, 2004 9:32 PM
Subject: Re: Retrieving numeric filemode


> In the last episode (Mar 09), Mark said:
> 
> > Is there way (via find or ls, or something else), to retrieve
> > the numeric filemodes? For instance, if "ls -la" says
> > "-r--r--r--", I would like to get its numeric equivalent, 444.
> 
> You can use "stat -r" to get the mode.  It's the 3rd field.

Thanks! Just what the doctor ordered. :)

- Mark

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Retrieving numeric filemode

2004-03-09 Thread Dan Nelson
In the last episode (Mar 09), Mark said:
> Is there way (via find or ls, or something else), to retrieve the
> numeric filemodes? For instance, if "ls -la" says "-r--r--r--", I
> would like to get its numeric equivalent, 444.

You can use "stat -r" to get the mode.  It's the 3rd field.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"