NetBSD-Users archive

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

Re: geting some file stat

George Georgalis <> wrote:
> I'm having difficulty determining a fast way to get the
> mode/UID/GID of a *large* number of files... I'm trying
> to use stat, but the numeric values that I could record
> for later input to chmod/chown commands are not easy to
> come by. Best method I see is to grep out stat -x output
> but I was wondering if there is a way to use -f or some
> other means?

stat -f "%u %g %p" filename



If you are undertaking anything substantial, C is the only reasonable choice
of programming language.
        -- UNIX User's Supplementary Documents

Attachment: pgpF4lX3wnjWt.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index