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.
|
|
# have.pl - works with output of sds info ...
# ($server, $root) = ($1, $2); # map({print $_ . "\n"} (@buf, "", @sorted));
# make sure we passed an input file.
# open the file and get the data
my @keys = (); my @vals = ();
open(F, $ARGV[0]) or die "You must specify an input file.\n"; @lines = <F>; close(F); #for ($i = 0; @lines; $i++) $i = 0; for(@lines) { (!/------- SDP.*-*/) or next; ($keys[$i], $vals[$i]) = split(/ - /, $_, 2); $i++; }
for ($i = 0; @keys; $i++) { print $keys[$i] . " ---- " . $vals[$i]; }
end:
|