scripts for my gemini capsule
gcc page: Show title and author
| -rwxr-xr-x | gcc.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -19,9 +19,12 @@ fi printf "20 text/gemini\r\n" printf "=>/cgi-bin/gcc.sh$PATH_INFO?.mp3 Listen to this!\n" curl https://gccsatx.com/hymns$PATH_INFO/ \ +| sed 's@ <title>@#@g' | sed 's@ | Hymn Lyrics and Piano Music</title>@@g'\ | sed 's@<p><strong>@##@g' | sed 's@</strong>@@g'\ +| sed 's@<p>@@g' \ | sed 's@<br />@@g' | sed 's@</p>@@' | grep -v '<' \ | grep -v '!important' | grep -v '}\|{\|wp-smiley' \ | sed 's/’/’/g' | sed 's/”/”/g' | sed 's/“/“/g'\ +| grep -v 'this website' \ | sed -r '/^\s*$/d' exit 0 |