#!/opt/local/gnu/bin/perl -w # A little script that converts my netscape bookmarks to a single page push(@ARGV,"/homes/gregg/.netscape/bookmarks.html"); $out = "bookmarks.html"; open(BM,">$out"); #sub heading { # if ((/<(TITLE)>/) || (/<(H1)>/) || (/^
/) { next LOOP; } if (/^
/) { $line = ""; next LOOP; } if (s/^[ ]*
/) { &chkline; if ($head eq "Frequent Access") { print BM "
\n"; } next LOOP; } if (/^ *
/) { $line = ""; next LOOP; } if (/^