|
|
1.1 ! root 1: awk ' # show.clicks: make a new view counting clicks ! 2: NR==1 && $1!="view" { print "view", (oldview = "default.view") } ! 3: $1 == "view" { oldview = $2 } ! 4: $1 == "click" { if ((cname = $2) == "") cname = "no.name" ! 5: print "view click.count" ! 6: if ((n=cnum[cname]) == 0) { ! 7: n = cnum[cname] = ++clicks ! 8: print "l" n ": text rjust 0", -n, cname ": " ! 9: } ! 10: print "v" n ": text ljust 0", -n, "\" " ++ccnt[n] ! 11: print "last: text ljust 0", -n, "bullet" ! 12: print "view " oldview ! 13: } ! 14: { print $0 } ! 15: ' $*
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.