Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux command to get number of lines in a file

wc -l <filename>
# output = <number of lines> <filename>
# to omit the file name in output
wc -l < <filename>
# output = <number of lines>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #command #number #lines #file
ADD COMMENT
Topic
Name
3+6 =