scripts for my gemini capsule
GCC: Clean up output
| -rwxr-xr-x | gcc.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -18,5 +18,10 @@ 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@<br />@@g' | sed 's@</p>@@' | grep -v '<' | grep -v '!important' | grep -v '}\|{\|wp-smiley' | sed 's/\s\+/ /g' | uniq +curl https://gccsatx.com/hymns$PATH_INFO/ \ +| sed 's@<p><strong>@##@g' | sed 's@</strong>@@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'\ +| sed -r '/^\s*$/d' exit 0 |