Skip to content

Instantly share code, notes, and snippets.

@secretGeek secretGeek/stats.ps1
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.