NINAnor / data-management-handbook

https://ninanor.github.io/data-management-handbook/
0 stars 2 forks source link

Chapter 9 - Update acronyms #6

Open frafra opened 1 year ago

frafra commented 1 year ago

Here is a way to see all the acronyms that have been used and for which we should have a description, given regex='[A-Z][A-Z0-9-]*[A-Z0-9]':

grep -Por "$regex" src/dmh_content/chapters/ | awk -F: '{print $2}' | sort | uniq -c | sort -nr

This is what I get with the current revision (87b1728):

     29 MMD
     16 CSW
     16 ACDD
     15 DMP
     14 CDF-CF
     12 DMH
      6 FAIR
      5 MET
      5 INSPIRE
      5 GEMET
      4 NORTHEMES
      4 NINA
      4 GCMDSK
      4 CDF
      3 WMS
      3 OGC
      3 NFR
      3 ISO
      3 GCMD
      3 CF
      2 XMLS
      2 WMO
      2 WIGOS
      2 TO
      2 S-ENDA
      2 QGIS
      2 PATH
      2 ISO-8859-1
      2 ISO8601
      2 ISO19115
      2 FILE
      2 CC-BY-4
      1 XSLT
      1 XML
      1 UUID
      1 USA
      1 URL
      1 UNSDI
      1 TODO
      1 SDI
      1 RD3
      1 PDF
      1 OECD
      1 NSDI
      1 NDAP
      1 METN
      1 KPI
      1 ISO-19115
      1 ID
      1 HTML
      1 GRIB
      1 GAIN
      1 FORCE11
      1 FEIDE
      1 EU
      1 DOI
      1 DNS
      1 DIF
      1 CDF4
      1 BUFR
frafra commented 1 year ago

A similar command can be used to generate the markdown table:

grep -Por "$regex" src/dmh_content/chapters/ | awk -F: '{print $2}' | sort -u | awk '{ print "| " $0 " |  |  |" }'