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" +