bufr_copy examples
To copy only the SYNOP messages from a file
> bufr_copy -w dataCategory=0 in.bufr out.bufr
To copy only the non-SYNOP messages from a file
> bufr_copy -w dataCategory!=0 in.bufr out.bufr
Use the square brackets to insert the value of a key in the name of the output file.
> bufr_copy in.bufr out_[dataCategory].bufr