Adding gopher bay search script. - various - Various utilities developed at bitreich. HTML git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/various/ DIR Log DIR Files DIR Refs DIR Tags --- DIR commit 1eb5c46cfb71f67e1370c45ad8110e8d951210ac DIR parent dff03529cf6aa5cf9776921055c50d817f6f5488 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Tue, 28 Jun 2022 20:36:35 +0200 Adding gopher bay search script. Diffstat: A gopher-bay-search | 16 ++++++++++++++++ 1 file changed, 16 insertions(+), 0 deletions(-) --- DIR diff --git a/gopher-bay-search b/gopher-bay-search @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ $# -lt 1 ]; +then + printf "usage: %s searchterm\n" "$(basename "$0")" >&2 + exit 1 +fi + +args="$(echo "$@" | sed 's, ,\.,g')" + +printf "/q.dcgi?%s\r\n" "${args}" \ + | nc bay.parazy.de 666 \ + | grep magnet: \ + | cut -f 2 \ + | cut -d':' -f 2- +