#!/bin/sh
sort -f |
awk 'BEGIN { FS="^\\|\\|[ \t]*>|<[ \t]*>|<\$"
             print "<html><head><title>Copied Files</title></head>"
             print "<body>"
             print "<h1>Copied Files</h1>"
             print "<tt><dl>"
             oldldr=""
           }
     /^\|\|/   {
                 if($2!=oldldr)
                 {
                    if(oldldr!="")
                        print "</ul></dd>"
                    oldldr = $2
                    gsub(" ","\\&nbsp;",$2)
                    print "<dt>" $2 "&nbsp;(" $4 "&nbsp;Bytes)</dt>"
                    print "<dd><ul>"
                 }
                 gsub(" ","\\&nbsp;",$3)
                 print "<li>" $3 "</li>"
               }
     END {
            if(oldldr!="")
                print "</ul></dd>"
            print "</dl></tt>"
            print "</body>"
            print "</html>"
         }
    '


syntax highlighted by Code2HTML, v. 0.9.1