varnames - List variables in a dataset

SYNOPSIS

varnames  [ parameter=value ]  [ inputfile ]

Parameter is: include_vars.

DESCRIPTION

varnames lists all dataset variables matching the include_vars parameter. varnames outputs this list to UNIX stdout, so it can be captured in shell variables as part of a shell script.

PARAMETERS

include_vars
One or more wildcard expressions used to match variable names in the input dataset. If the expressions are preceded by a minus sign, then all variables not matching any of the expressions are included in the output list. Wildcards * and ? are allowed. The default is to include all variables in the output list.

EXAMPLES

List all variables in the dataset $FILE with names starting with 'avhrr' and store in the vector-valued C-shell variable $VARS:

     set VARS = ( `varnames include_vars='avhrr*' $FILE` )

Note that the wildcard expression 'avhrr*' is quoted to avoid expansion by the shell.


Last Update: $Date: 1999/05/10 20:46:54 $