Created
February 1, 2016 22:50
-
-
Save JhonAlx/a5b6f684094bfe1c618c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gci | foreach { | |
[int]$LinesInFile = 0 | |
$path = "path" + $_.name | |
$reader = New-Object IO.StreamReader $path | |
while($reader.ReadLine() -ne $null){ $LinesInFile++ } | |
echo $_.name ": " $LinesInFile | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment