How can I find how many lines a text file contains without opening the file in an editor or a viewer application? Is there a handy Unix console command to see the number?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
Indeed there is. It is called
|
|||||
|
|
Another option would be to use
In this example,
EDIT: As mentioned by @hesse in the comments, this can be shortened to
|
|||||||||||
|