1# $NetBSD: domains.sed,v 1.2 2003/03/02 21:32:33 jhawk Exp $ 2:top 3# Strip ^Ms 4s/ 5//g 6# Join all lines with unterminated HTML tags 7/<[^>]*$/{ 8 N 9 b top 10} 11# Replace all <BR> with EOL marker ($) 12s/<BR>/$/g 13# Join all data lines (containing ">.") not ending in $ 14/>\..*[^$]$/{ 15 N 16 s/\n//g 17 b top 18} 19s/<[^>]*>//g 20# Remove all HTML tags 21s/\$$// 22# Remove EOL markers 23s/ / /g 24# Remove HTML character encodings 25s/–//g 26s/[ ][ ]*/ /g 27# n Compress spaces/tabs 28s/^ // 29# Output metadata to file "top" 30/updated/{ 31 s/.*updated/# Latest change:/ 32 s/ *$// 33 w top 34} 35# Delete all non-data lines 36/^\./!d 37# Remove leading '.' 38s/^\.// 39