How to count number of lines in a text file using Linux shell
Sometimes you need an easy way to count number of lines in a text file. For example, how many lines in a .csv file. Easy: wc -l somefilename.csv You can also count number of characters in a file using “wc”: wc -m somefilename.txt Or number of words: wc -w somefilename.txt Explore the possiblities of “wc”: # wc –help Usage: wc…
Read More »