Displaying Multiple Resources Using Wildcards and Slice Notation

To specify multiple resources with one SSID, use the * wildcard or the s (slice) keyword. Both of the following commands show the same result:

$ sstore list //:class.cpu//:res.id/*
$ sstore list //:class.cpu//:res.id//:s.[*]
IDENTIFIER
//:class.cpu//:res.id/0
//:class.cpu//:res.id/1
//:class.cpu//:res.id/2
//:class.cpu//:res.id/3

The following command selects a subset of resources:

$ sstore list //:class.cpu//:res.id///:s.[1,3]
IDENTIFIER
//:class.cpu//:res.id/1
//:class.cpu//:res.id/3

The slice notation is particularly helpful if the resource namespace is numeric and sequential. The following command selects a range of resources:

$ sstore list //:class.cpu//:res.id///:s.[1:3]
IDENTIFIER
//:class.cpu//:res.id/1
//:class.cpu//:res.id/2
//:class.cpu//:res.id/3

The following command shows resources with non-numeric names:

$ sstore list //:class.disk//:res.name/*
IDENTIFIER
//:class.disk//:res.name/sd0
//:class.disk//:res.name/sd1
//:class.disk//:res.name/sd10
//:class.disk//:res.name/sd11
...

The following command selects a subset of resources with non-numeric names:

$ sstore list //:class.disk//:res.name///:s.[sd2*,sd7*]
IDENTIFIER
//:class.disk//:res.name/sd2
//:class.disk//:res.name/sd20
...
//:class.disk//:res.name/sd29
//:class.disk//:res.name/sd7

A range cannot specify non-numeric resource names:

$ sstore list //:class.disk//:res.name///:s.[sd2:sd7]
Warning (//:class.disk//:res.name/sd2:sd5) - lookup error: no matches found