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
# PowerShell: Counting words in a text file | |
# Returns a list of the most-used, longest words in a text file. | |
# | |
# Adapted slightly from | |
# https://blogs.technet.microsoft.com/josebda/2015/03/21/powershell-examples-counting-words-in-a-text-file/ | |
# | |
# Run this with PowerShell in the folder containing your text, from PowerShell with: | |
# ./word-freq | |
# It looks for combined.txt. To get this from a set of markdown files, | |
# I use Cygwin (because native Windows CLIs have encoding issues) and run: |