/contrib/ntp/scripts/stats/dupe.awk

https://bitbucket.org/freebsd/freebsd-head/ · AWK · 8 lines · 5 code · 0 blank · 3 comment · 2 complexity · 06a3a1ad098b2e51ac4ef1d9de11a85f MD5 · raw file

  1. #
  2. # delete duplicate lines
  3. #
  4. {
  5. if (old != $0)
  6. printf "%s\n", $0
  7. old = $0
  8. }