Re: [zfs-discuss] Wildcards to zfs list

2010-03-07 Thread Tomas Ögren
On 07 March, 2010 - David Dyer-Bennet sent me these 1,1K bytes:

 There isn't some syntax I'm missing to use wildcards in zfs list to list  
 snapshots, is there?  I find nothing in the man page, and nothing I've  
 tried works (yes, I do understand that normally wildcards are expanded  
 by the shell, and I don't expect bash to have zfs-specific stuff like  
 that in it by default).  Given that bash passes through wildcards that  
 don't expand to anything (or you can always force it with quoting), zfs  
 list *could* use those to filter the snapshot list; that would be  
 convenient.  In the meantime, I can split what the user enters at the  
 @ and use grep to filter the output from zfs list.

zfs list -t snapshot  ?

Add  -o name -H   if you only want the names..

 (I'm running 2009.06, which is based on snv_111b, so if this capability  
 has appeared since then in some form, I'd really like to know; I'll be  
 updating to the next stable release.)

 -- 
 David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/
 Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
 Photos: http://dd-b.net/photography/gallery/
 Dragaera: http://dragaera.info

 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


/Tomas
-- 
Tomas Ögren, st...@acc.umu.se, http://www.acc.umu.se/~stric/
|- Student at Computing Science, University of Umeå
`- Sysadmin at {cs,acc}.umu.se
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Wildcards to zfs list

2010-03-07 Thread David Dyer-Bennet

On 3/7/2010 11:23 AM, Tomas Ögren wrote:

On 07 March, 2010 - David Dyer-Bennet sent me these 1,1K bytes:

   

There isn't some syntax I'm missing to use wildcards in zfs list to list
snapshots, is there?  I find nothing in the man page, and nothing I've
tried works (yes, I do understand that normally wildcards are expanded
by the shell, and I don't expect bash to have zfs-specific stuff like
that in it by default).  Given that bash passes through wildcards that
don't expand to anything (or you can always force it with quoting), zfs
list *could* use those to filter the snapshot list; that would be
convenient.  In the meantime, I can split what the user enters at the
@ and use grep to filter the output from zfs list.
 

zfs list -t snapshot  ?

Add  -o name -H   if you only want the names..
   


Already using exactly that.

Then I have to filter through grep to get the wildcard action I'm asking 
about.


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss