How do I get lines from a file?

How do I get lines from a file?
Answer
The tool wc is the “word counter” in UNIX and UNIX-like operating systems, but you can also use it to count lines in a file by
adding the -l option. wc -l foo will count the number of lines in foo .
 

Tìm kiếm

Back
Top