geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

filter_seed_request.sh (279B)


      1 #!/bin/bash
      2 BASEDIR="$1"
      3 grep -iE '^gemini:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,10}\b[-a-zA-Z0-9()!@:%_\+.~#?&\/\/=]*$' "${BASEDIR}/seed-requests.txt" | sort | uniq > "${BASEDIR}/seed-requests.txt2"
      4 mv "${BASEDIR}/seed-requests.txt2" "${BASEDIR}/seed-requests.txt"