dotfiles/.local/bin/scripts/checkdomain

8 lines
372 B
Plaintext
Raw Normal View History

2021-12-23 20:39:55 +00:00
#!/bin/sh
# check domains from input files via checkdomain, 10 domains at once
tmp=/tmp/checkdomain
mkdir -p $tmp
prefix="$tmp/split$(date +%s)"
sh -c "printf '%s\n' {$(paste -s -d, domains)}.{$(paste -s -d, tlds)}" | split -l 10 - "$prefix"
find "$tmp" -path "$prefix*" -exec sh -c 'xdg-open "https://www.checkdomain.net/en/domains/search/?domain=$(paste -s -d, {})"' \;