Sunday, November 12, 2023

how to get wordcount of a txt file in the terminal

use the wc command.


wc file.txt


the output is 3 columns of numbers:


# of lines, WORDCOUNT, bytes


No comments:

Post a Comment