35 lines
521 B
Sed
35 lines
521 B
Sed
# Remove some HTML and markdown syntax stuff
|
|
s/<code>//
|
|
s/<file>//
|
|
s_</code>__
|
|
s_</file>__
|
|
s/^```//
|
|
s/^```console//
|
|
/&&/d
|
|
/|/d
|
|
/-/d
|
|
/{/d
|
|
/^\*/d
|
|
/^\#$/d
|
|
/^\$$/d
|
|
/log/d
|
|
|
|
# tease out some convoluted concepts
|
|
s/^python$/Python/
|
|
s/\[root/root/
|
|
s/^Gluster$/GlusterFS/
|
|
s_HTTP/1.1"_HTTP/1.1_
|
|
s/[Ee]rror:/error/
|
|
|
|
# Anything with a comma or semi-colon at the end of the line
|
|
s/[,:]$//
|
|
s/\.$//
|
|
s/\[Ansible/Ansible/
|
|
s/^Ansible\?/Ansible/
|
|
s/^Ansible\]\]/Ansible/
|
|
s/^ansible$/Ansible/
|
|
s/answer/Answer/
|
|
|
|
# delete blank lines last
|
|
/^$/d
|