Skip to content

Instantly share code, notes, and snippets.

@iOnline247
Created March 19, 2021 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iOnline247/7e3681ed5b256dcc8e2997a7590caf54 to your computer and use it in GitHub Desktop.
Save iOnline247/7e3681ed5b256dcc8e2997a7590caf54 to your computer and use it in GitHub Desktop.
# https://stackoverflow.com/a/22558858
Get-ChildItem -Include *.js, *.css, *.html -Recurse | ForEach-Object {
$_ | Select-Object FullName, @{n = "Lines"; e = { Get-Content $_ | Measure-Object -Line | Select-Object -ExpandProperty Lines}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment