#!/bin/sh
# Produce a HTML-check file from ready formatted sequence-file,
# skipping three first terms from each sequence (only those on %S-line
# are used). Show the visited links with red, so it is easier to
# spot the duplicates of our own.
awk ' BEGIN { print "<HTML><HEAD><TITLE>OEIS-check</TITLE></HEAD><BODY VLINK=\"red\"><UL>"; } /^%S/ { s1 = substr($3,1+index($3,",")); s2 = substr(s1,1+index(s1,","));  s3 = substr(s2,1+index(s2,",")); print "<LI><A HREF=\"http://www.research.att.com/projects/OEIS?Anum="$2"\">"$2"</A>="; print "<A HREF=\"http://www.research.att.com/cgi-bin/access.cgi/as/njas/sequences/eishis.cgi?sequence="s3"\">"$3"</A>"; } END { print "</UL></BODY></HTML>"; } '

