gopher-bay-search - various - Various utilities developed at bitreich. | |
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinw… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
gopher-bay-search (253B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 if [ $# -lt 1 ]; | |
4 then | |
5 printf "usage: %s searchterm\n" "$(basename "$0")" >&2 | |
6 exit 1 | |
7 fi | |
8 | |
9 args="$(echo "$@" | sed 's, ,\.,g')" | |
10 | |
11 printf "/q.dcgi?%s\r\n" "${args}" \ | |
12 | nc bay.parazy.de 666 \ | |
13 | grep magnet: \ | |
14 | cut -f 2 \ | |
15 | cut -d':' -f 2- | |
16 |