Get amount of words, chars and lines in a file using PowerShell

Sometimes it is useful to collect some stats about a text file you have. If you are using a modern text editor like Notepad++ or Geany, it probably has enough tools for all possible cases. However, if you are in a barebone Windows environment, then PowerShell can help you. Here is quick tip how to use it efficiently to calculate the number of words, chars and lines in a file.

Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.