#!/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, {})"' \;
