Skip to content

Instantly share code, notes, and snippets.

@secretGeek
Last active August 29, 2015 14:07
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 secretGeek/b268bb0b719a65ed328b to your computer and use it in GitHub Desktop.
Save secretGeek/b268bb0b719a65ed328b to your computer and use it in GitHub Desktop.
stats.ps1, summarize the numbers of words in each markdown file, and display them by size descending.
$x = "";
dir *.md | % { $x = $_.Name; type $_.Name | Measure-Object –Word | % { ("{0,5}" -f $_.Words) + " " + $x } } | sort -desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment