Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: testing file owner



ls *(u$UID)
lists only files owned by the user with uid=$UID (you can, of course,
replace $UID with a user id literal, like 0 for root)
or, for example
ls *(u:root:)
to list files given a user name rather than user id (the : is any
arbitrary separator that must be repeated at the end.)

See "Glob Qualifiers" in man zshexpn

On 4/28/07, pol <linux_milano@xxxxxxxx> wrote:
Hi

I would like to test file owner, in order to list only files belonging
to the specified user (or set of users).
Any hints?


thank you

Pol





Messages sorted by: Reverse Date, Date, Thread, Author