This commit is contained in:
James Tomasino 2020-05-06 00:00:03 +00:00
parent b24306e41c
commit 9882627df1
1 changed files with 10 additions and 0 deletions

10
gopher/USS Springfield/tt.sh Executable file
View File

@ -0,0 +1,10 @@
title=$(curl -sL "$1" | grep -om1 '<title>.*<\/title>' \
| sed -e s/'<[\/]*title>'//g \
-e s/'&#39;'/"'"/g \
-e s/'&#34;'/'"'/g \
-e s/'&#8211;'/'-'/g \
-e s/'&amp;'/'&'/g \
-e s/'&nbsp;'/' '/g)
[[ "$title" != "" ]] && echo -e "\x1f\00032Title\x1f\03: \x02$title\x02"