wgrib2: -not
Introduction
The -not option selects records which should
be processed. The -not is a not
-match. When multiple -match/-not options are
used, all must be satisfied.
wgrib2 -not X (...)
is the same as
wgrib2 -match_inv file | egrep -v X | wgrib2 -i (...)
wgrib2 -match X -not Y (...)
is the same as
wgrib2 -match_inv file | egrep X | egrep -v Y | wgrib2 -i (...)
where X, and Y are regular expressions. Note, X and Y will not match
the second (byte location) field of the short inventory.
Usage
-match X
X is a POSIX extended regular expression
The -match, and -not selection
facility is more limited than the "wgrib2 | filter | wgrib2 -i" syntax.
However, it can be more efficient especially when combined with the
-end option.
See also: -not,
-match_inv,
-end,
-i.
-if.
|