Skip to content

Instantly share code, notes, and snippets.

@HappiePlant
Last active February 26, 2024 20:37
Show Gist options
  • Select an option

  • Save HappiePlant/5d0da9acaeb5261a8fecf40afcecacf8 to your computer and use it in GitHub Desktop.

Select an option

Save HappiePlant/5d0da9acaeb5261a8fecf40afcecacf8 to your computer and use it in GitHub Desktop.
Nushell command to get a list of all domains of the Dutch government / Nederlandse overheid
# ODS Source: https://www.communicatierijk.nl/vakkennis/rijkswebsites/verplichte-richtlijnen/websiteregister-rijksoverheid
# Direct source: https://www.communicatierijk.nl/binaries/communicatierijk/documenten/publicaties/2016/05/26/websiteregister/websiteregister-rijksoverheid-2024-01-25.ods
open websiteregister-rijksoverheid-2024-01-25.ods
| get Sheet1.column0
| skip 2
| str replace "http://" ""
| split column .
| each {|e|
transpose
| get column1
| last 2
| str join .
}
| uniq
| split column /
| get column1
| uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment