Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Distinkte GSW zu Notation 54 mit Anzahl der Vorkommnisse
$ curl --header "Accept-Encoding: gzip" "http://lobid.org/resources/search?q=coverage:54&format=bulk" | gzip -dc > n54-strings.jsonl
$ cat n54-strings.jsonl | jq .coverage[] | sort | uniq -c | sort -n -r > n54-strings.txt
Abschließend per RegEx um Nicht-54-Notationen bereinigt.
41 "Grafschaft Moers | 54"
20 "Herzogtum Arenberg | 54"
19 "Grafschaft Gimborn-Neustadt | 54"
17 "Herrschaft Homburg, Nümbrecht | 54"
8 "Grafschaft Sayn | 54"
5 "Grafschaft Kerpen und Lommersum | 54"
2 "Grafschaft Tecklenburg | 74"
1 "Wiehl-Bielstein | 99"
1 "Soest | 99"
1 "Schleiden | 99"
1 "Rhein-Sieg-Kreis | 97"
1 "Oberbergischer Kreis | 97"
1 "Niederrheinische Bucht | 24"
1 "Neuenrade | 99"
1 "Münster (Westf) | 99"
1 "Moers | 99"
1 "Krefeld | 99"
1 "Hüls, Krefeld | 99"
1 "Homburg <Nümbrecht> | 99"
1 "Heisberg | 99"
1 "Grafschaft Wittgenstein | 74"
1 "Grafschaft Rietberg | 74"
1 "Grafschaft Lingen <Ems> | 74"
1 "Duisburg-Baerl | 99"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.