Excerpt |
---|
|
No. You can read the filter rules directly from the standard input (stdin) by using the "-" (a single hyphen) instead of the rules file path. For example |
info |
No. You can read the filter rules directly from the standard input (stdin) by using the "-" (a single hyphen) instead of the rules file path. For example:
Code Block |
---|
|
% echo 'set edition=2; print "[centre]"; write;' | grib_filter -o out. gribgrib2 - in. gribgrib1 |
Or like this:
Code Block |
---|
|
% grib_filter -o out. gribgrib2 - in. gribgrib1 <<EOF
set edition=2;
print "centre=[centre] paramId=[paramId]";
write;
EOF |
This filter attempts to convert the messages in the input to edition 2, prints the originating centre and paramId and finally writes the output to disk.
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | ~usa |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
excludeCurrent | true |
---|
cql | label = in ("kb-information-article","eccodes-faqs","grib_filter","grib","stdin") and label in ("grib_filter","bufr_filter") and type = "page" and space = "~usaUDOC" |
---|
labels | kb-how-to-article |
---|
|