Difference between revisions of "Reading a file"
From MyWiki
Line 1: | Line 1: | ||
− | <source lang=" | + | <source lang="powershell"> |
$lines=Get-Content myfile.txt | $lines=Get-Content myfile.txt | ||
$lines | | $lines | |
Revision as of 13:13, 6 October 2014
$lines=Get-Content myfile.txt $lines | ForEach-Object{ Test-Connection $_.Split(' ')[1] }
$lines=Get-Content myfile.txt $lines | ForEach-Object{ Write-Host $_ }