Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

But it is better to write a rules file and use grib_filter:

Code Block
languagebash
titlemy.filter
if (count < 4) {
  print "Copying message number [count]";
  write;
}

...

Of course you can make the IF condition more complicated e.g. select a range of messages to be copied:

Code Block
languagebash
if (count == 3 || count == 13) {
  write;  # Write out message 3 and 13 only
}


Code Block
if (count % 2 == 0) {
  write;  # Write out even-numbered messages, e.g., 2, 4, 6 etc
}



Info

Note: The "count" key starts from 1


Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("kb-how-to-article","eccodes-faqs","grib","grib_copy","clone","grib_filter") and label in ("grib","grib_copy","grib_filter") and type = "page" and space = "UDOC"
labelskb-how-to-article

...