All pastes #834461 Raw Edit

Mine

public text v1 · immutable
#834461 ·published 2007-12-28 06:44 UTC
rendered paste body
alias pcheck {
  var %q = $did(pfilt,2).lines,%w = 1
  while (%q >= %w) {
    if ($regex($did(pfilt,2,%w).text,/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d+)/)) {
      if ($+(*,$regml(1),*) !iswm $hget(pfilt,ps)) {
        hadd -m pfilt ps $hget(pfilt,ps) $regml(1) $+ ,
      }
    }
    inc %w
  }
  var %y = 1,%z = $numtok(%pro,44)
  while (%y <= %z) {
    did -i pfilt 1 $did(pfilt,1).lines $token($hget(pfilt,ps),%y,44) 
    inc %y
  }
  hdel pfilt ps
}