Powershell - after a count how to trim line -
I'm using the following to count with netstat but counting on the next line is visible. Here's what I'm doing
$ LIST = (netstat -an | select-string 443 | select-string "LISTENING"). Type "LISTENING:" $ LIST & gt; & Gt; D: \ entNew.txt is output:
LISTENING: 40 How do I get the output To type in:
LISTENING: 40
< P> Just test your case: "listen: $ list" & gt; & Gt; D: \ entNew.txt
However, I have & gt; & Gt; but do not use set-content CmdLet, and I have a regular expression to filter the output of a netstate.
Comments
Post a Comment