zsh-users
 help / color / mirror / code / Atom feed
* testing file owner
@ 2007-04-28  6:31 pol
  2007-04-28  7:32 ` Matt Wozniski
  0 siblings, 1 reply; 2+ messages in thread
From: pol @ 2007-04-28  6:31 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: testing file owner
  2007-04-28  6:31 testing file owner pol
@ 2007-04-28  7:32 ` Matt Wozniski
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Wozniski @ 2007-04-28  7:32 UTC (permalink / raw)
  To: zsh-users

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@yahoo.it> 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
>
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-28  7:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-28  6:31 testing file owner pol
2007-04-28  7:32 ` Matt Wozniski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).