title=$(curl -sL "$1" | grep -om1 '<title>.*<\/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"
Response: text/plain
| Original URL | gopher://cosmic.voyage/0/USS%20Springfield/tt.sh |
|---|---|
| Content-Type | text/plain; charset=utf-8 |