-
Notifications
You must be signed in to change notification settings - Fork 50
Filtering columns and rows
Columns and Rows selectability can be controlled with the -C
en -R
options.
These options can be combined with the -i
en -e
options for a cumulative effect.
Contrarily to these options, columns end rows can be designated with their numbers, read the manual page for more details.
The examples shown here try to cover some cases:
The default mode is inclusion:
smenu -t -C /lo\|on/,3,5-6
Note the additional e
before C
to ask for exclusion:
smenu -t -C e/lo\|on/,3,5-6
-C
and -R
can also be combined like -e
and -i
. In the
following example The first instance of -C
is inclusive and the
second one exclusive:
smenu -t -C /lo\|on/,3,5-6 -C e3
Combining -R
(rows inclusions/exclusions) and -C
is also possible:
smenu -t -C 2,4-5,7 -R e2,4
Read the manual and practice to learn more.
smenu illustrated concepts and examples: