From 9882627df1a9bf38e09f0607185b3d19b1a5f866 Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Wed, 6 May 2020 00:00:03 +0000 Subject: [PATCH] backup --- gopher/USS Springfield/tt.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 gopher/USS Springfield/tt.sh diff --git a/gopher/USS Springfield/tt.sh b/gopher/USS Springfield/tt.sh new file mode 100755 index 0000000..d0da828 --- /dev/null +++ b/gopher/USS Springfield/tt.sh @@ -0,0 +1,10 @@ + + title=$(curl -sL "$1" | grep -om1 '.*<\/title>' \ + | sed -e s/'<[\/]*title>'//g \ + -e s/'''/"'"/g \ + -e s/'"'/'"'/g \ + -e s/'–'/'-'/g \ + -e s/'&'/'&'/g \ + -e s/' '/' '/g) + [[ "$title" != "" ]] && echo -e "\x1f\00032Title\x1f\03: \x02$title\x02" +