parse HTML links for rss

This commit is contained in:
James Tomasino 2018-03-31 22:56:32 -04:00
parent 488e27ea03
commit a7dc326a62
1 changed files with 1 additions and 1 deletions

2
burrow
View File

@ -447,7 +447,7 @@ function make_rss {
echo " <description><![CDATA[<pre>"
if grep -q "gophermap$" <<< $filename
then
awk -F"\t" '/^[2-9h\+GIThs].*\t/ {print $0; next} /^[0-1].*\t/ { l=substr($1, 2, length($1)); t=substr($1,1,1); print l "\n gopher://" $3 "/" t $2; next } {sub(/^i/, "", $1);print $1}' "$f"
awk -F"\t" '/^[2-9\+GITs].*\t/ {print $0; next} /^h.*\t/ { l=substr($1, 2, length($1)); print l "\n " substr($2, 5, length($2)); next } /^[0-1].*\t/ { l=substr($1, 2, length($1)); t=substr($1,1,1); print l "\n gopher://" $3 "/" t $2; next } {sub(/^i/, "", $1);print $1}' "$f"
else
cat "$f"
fi