19 Jul
2001
19 Jul
'01
1:24 p.m.
On Thu, Jul 19, 2001 at 12:50:28AM -0400, Gary J. Hanley wrote: ghanley> On Thu, 19 Jul 2001 ccb@acm.org wrote: ghanley> > > Check out the 'stat' command and 'stat -t'. ghanley> > ghanley> > Unfortunately it gives full modes in HEX! ghanley> ghanley> Oh, that's what that was. Without the -t looked promising, but with the -t ghanley> I couldn't find the value I expected. Thank you anyway Charles. I figured you'd use the version without the -t like this: stat file | grep "Access: (" | cut -d\( -f2 | cut -d/ -f1 It works with directories too.