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.

32 lines
582 B

  1. # have.pl - works with output of sds info ...
  2. # ($server, $root) = ($1, $2);
  3. # map({print $_ . "\n"} (@buf, "", @sorted));
  4. # make sure we passed an input file.
  5. # open the file and get the data
  6. my @keys = ();
  7. my @vals = ();
  8. open(F, $ARGV[0]) or die "You must specify an input file.\n";
  9. @lines = <F>;
  10. close(F);
  11. #for ($i = 0; @lines; $i++)
  12. $i = 0;
  13. for(@lines)
  14. {
  15. (!/------- SDP.*-*/) or next;
  16. ($keys[$i], $vals[$i]) = split(/ - /, $_, 2);
  17. $i++;
  18. }
  19. for ($i = 0; @keys; $i++)
  20. {
  21. print $keys[$i] . " ---- " . $vals[$i];
  22. }
  23. end: