Last active
August 29, 2015 14:07
-
-
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.
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
$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