#!/bin/sh
#
# Slashdot -> Gopher .links
#
#
[email protected] 2003
#
echo -e \
"Name=The Headlines were last Fetched at: `date`
Type=i
Numb=1
Path=fake\n
Name=
Type=i
Path=fake\n"
lynx -dump
http://slashdot.org/slashdot.rdf \
| zgrep -e '^<title>.*</title>$|^<link>.*</link>$' \
| sed 's#<title>#Name=#g
s#</title>#\
Type=h\
Host=slashdot.org\
Port=80#g
s#<link>##g
s#
http://slashdot.org#Path=GET #g
s#</link>#\
#g'> .links