Apr 22 2015

Counting lines from a text document in Ubuntu

Category: file managementadmin @ 6:43 am

In order to count lines from a document in the command line, use the following command

wc -l <mytextfile>

Example:

wc -l myfile.txt

Tags:

Leave a Reply

*
= 4 + 3