1 2 3 4 5 6 7 8 9
#!/bin/sh if [ "$QUERY_STRING" = "q" ] then printf "10 Enter a ccel author \r\n" return fi printf "20 text/gemini\r\n" curl https://ccel.org/index/author |grep "/$QUERY_STRING/" | sed 's@ccel/@\t@g' |sed 's/"/\t/g' |cut -f3 | sed 's/^/=> ccel.sh?/g'