Skip to content

Instantly share code, notes, and snippets.

@akiya64
Created March 30, 2017 08:13
Show Gist options
  • Save akiya64/01682ff6ba2a1758998001a455a02901 to your computer and use it in GitHub Desktop.
Save akiya64/01682ff6ba2a1758998001a455a02901 to your computer and use it in GitHub Desktop.
Count Lines in Folder
Get-ChildItem -Recurse | Where-Object {($_.name -like "*cls") -or ($_.name -like "*bas") -or ($_.name -like "*dcm")} | ForEach-Object { Get-Content $_.Name } | Measure-object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment