Command-line Basics: Counting Words and More

1 · · Aug. 3, 2019, 8:18 a.m.
Modern word processors do a great job of providing information about the number of words and lines of a document. But if you’re working with a log file out on a remote server, you probably don’t want to go through the hassle of downloading the file so you can open it in your favorite word processor. In those situations, you can quickly and easily use the wc utility to get the number of lines, words, and more, right from the command-line. Getting started For this post we’re going to be using the ...