Created
February 25, 2019 22:28
-
-
Save adam-acosta/ba478e9dbd94a696c3c304fd29b527cc to your computer and use it in GitHub Desktop.
count of lines of each file in folder organized
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
Get-ChildItem -re -in "*.cs" | | |
Foreach-Object { | |
$fileStats = Get-Content $_.FullName | Measure-Object -line | |
$linesInFile = $fileStats.Lines | |
Write-Host "$_=$linesInFile" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment