11 lines
404 B
Bash
Executable File
11 lines
404 B
Bash
Executable File
|
|
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"
|
|
|