Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
213 B

  1. {
  2. if (NR == 1)
  3. {
  4. last = $0
  5. lastLen = length($0)
  6. print last
  7. }
  8. if (substr($0,1,lastLen) != last)
  9. {
  10. last = $0
  11. lastLen = length($0)
  12. print last
  13. }
  14. }