Difference between revisions of "Reading a file"

From MyWiki
Jump to: navigation, search
(Created page with " $lines=Get-Content myfile.txt $lines | ForEach-Object{ Test-Connection $_.Split(' ')[1] }")
 
Line 1: Line 1:
$lines=Get-Content myfile.txt
+
<source lang="html4strict">
 +
$lines=Get-Content myfile.txt
 
     $lines |
 
     $lines |
 
     ForEach-Object{
 
     ForEach-Object{
 
         Test-Connection  $_.Split(' ')[1]
 
         Test-Connection  $_.Split(' ')[1]
 
     }
 
     }
 +
</source>

Revision as of 15:36, 16 June 2014

 
$lines=Get-Content myfile.txt
    $lines |
     ForEach-Object{
         Test-Connection  $_.Split(' ')[1]
     }