From b87fc2fa4e29f0e7e17b40faa66e6d5364c2f466 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 23 Mar 2021 08:23:40 -0400 Subject: * ccel: add scripts which are in the wild --- ccelauthor.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 ccelauthor.sh (limited to 'ccelauthor.sh') diff --git a/ccelauthor.sh b/ccelauthor.sh new file mode 100755 index 0000000..ef3eb86 --- /dev/null +++ b/ccelauthor.sh @@ -0,0 +1,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' -- cgit 1.4.1