NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: geting some file stat

On Tue, 19 Feb 2008, George Georgalis wrote:

> So, what is the most efficient way to get the 4 least
> significant bytes of "%p" (for input to chmod)?

Have a look at

H, M,  L modifiers, for example:

tx:reed$ stat -f "%Hp %Mp %Lp %N" /usr/bin/passwd /etc/passwd /tmp 
10 4 555 /usr/bin/passwd
10 0 644 /etc/passwd
4 1 777 /tmp

Home | Main Index | Thread Index | Old Index