Skip to content

Instantly share code, notes, and snippets.

View JhonAlx's full-sized avatar
🤔

Jhon JhonAlx

🤔
  • Bogotá, Colombia
View GitHub Profile
gci | foreach {
[int]$LinesInFile = 0
$path = "path" + $_.name
$reader = New-Object IO.StreamReader $path
while($reader.ReadLine() -ne $null){ $LinesInFile++ }
echo $_.name ": " $LinesInFile
}