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