[nycbug-talk] using stat
George Georgalis
george
Sat Jul 30 18:18:38 EDT 2005
On Sat, Jul 30, 2005 at 06:06:55PM -0400, George Georgalis wrote:
>Humm, BSD stat is quite a bit different than Linux.
>
>how do I make a colon "mode:uid:gid:file", ie
>stat $OPTIONS /etc/rc.conf
>644:0:0:/etc/rc.conf
Heh, case of reckless experimentation is faster than studying the man,
by a long shot!
set OPT="%Mp%Lp:%u:%g:%N"
stat -f $OPT /etc/rc.conf
0644:0:0:/etc/rc.conf
// George
--
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george at galis.org
More information about the talk
mailing list