Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

New line for each text in variable

$
0
0

I have a variable $computers which outputs like :

write-host $computers

ComputerA ComputerB ComputerC

How can I output the variable with each text on a new line, i..e ?

write-host $computers

ComputerA

ComputerB

ComputerC

Thanks

Bill


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>