From 89b9f068e8b8b555ed417c915f4d66d69352da96 Mon Sep 17 00:00:00 2001
From: Zach DeCook
Date: Tue, 23 Mar 2021 17:57:19 -0400
Subject: GCC: Clean up output
---
gcc.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
(limited to 'gcc.sh')
diff --git a/gcc.sh b/gcc.sh
index 6d7e089..47e487a 100755
--- a/gcc.sh
+++ b/gcc.sh
@@ -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@
@@g' | sed 's@
@@' | grep -v '<' | grep -v '!important' | grep -v '}\|{\|wp-smiley' | sed 's/\s\+/ /g' | uniq
+curl https://gccsatx.com/hymns$PATH_INFO/ \
+| sed 's@@##@g' | sed 's@@@g'\
+| sed 's@
@@g' | sed 's@
@@' | grep -v '<' \
+| grep -v '!important' | grep -v '}\|{\|wp-smiley' \
+| sed 's/’/’/g' | sed 's/”/”/g' | sed 's/“/“/g'\
+| sed -r '/^\s*$/d'
exit 0
--
cgit 1.4.1