Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: testing file owner
- X-seq: zsh-users 11461
- From: "Matt Wozniski" <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: testing file owner
- Date: Sat, 28 Apr 2007 03:32:12 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ie7xLesnCSJExdVNROF7rOQRpOTsxcRrSTpyWnvnzfhpK0fqpkgkwc/mmI9+I+N3CpGc55SyGLKT9mfGiR+GaVmnb6oyS9M3Q2NgP2dJlqwjU25+e8eudv28X+9rZ+D2eC8CEmCxUMbl9yLxxQ1vRWXtPHQOSRdQcJdm3/nT8bY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=a/RsQlO3AI+zzcFIM91XOGJqlL7sbTiQjU7R+jX0drBSJjZc8PSPq2JDWH94gdPIErehtGbVnyq7mNJGsc71pgRMsSRKQdZ104en4lNLHCGR+fZIIq0IEaTsUb2cyGjOtYhWHnNS+qW9lb9emo+VQZC7XxWlgKR/vfEqBdMdxmA=
- In-reply-to: <f0upnp$ihs$1@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <f0upnp$ihs$1@xxxxxxxxxxxxx>
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