~nin0/top-domain-list

Remove redundant domains from a list
feat: trim spaces and ignore empty lines
rename the project and document a bit
feat: lines without dot as TLD (and removes lower levels)

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~nin0/top-domain-list
read/write
git@git.sr.ht:~nin0/top-domain-list

You can also use your local clone with git send-email.

#top-domain-list

builds.sr.ht status

cli tool for cleaning up a list of domains, keeping only the top ones to avoid redundancy.

I use it for git.sr.ht/~nin0/bad-actors.

#Installation

cargo install top-domain-list

#Usage

Usage: top-domain-list [OPTIONS] <PATH>

Arguments:
  <PATH>  Path to a file containing a list of domains (one per line)

Options:
  -t, --tld   Consider lines without dot as TLD (and removes lower levels)
  -h, --help  Print help

#Contact

You can send me an email here : lists.sr.ht/~nin0/public-inbox (archives are not public).