Adding gopher bay search script. - various - Various utilities developed at bit… | |
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinw… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit 1eb5c46cfb71f67e1370c45ad8110e8d951210ac | |
parent dff03529cf6aa5cf9776921055c50d817f6f5488 | |
Author: Christoph Lohmann <[email protected]> | |
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(-) | |
--- | |
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- | |
+ |