Hello Monks. Trying to flatten the output of the Windows "qwinsta" command to produce a "user=Active,user2=Disc,user3=Disc" single line output for Nagios. I'm having trouble deciding which type of field processing behavior to use:
is not quite working for me. Thanks!while (<>) { chomp; # strip record separator @Fld = split(' ', $_, -1); if ($awk) { print $Fld[2] . '=' . $Fld[4]; }
In reply to flatten record data by gowf67
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |