Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux count number of lines in all files

# count total line numbers of multiple files
find ./ -type f -exec wc -l {} ; | awk '{total += $1} END{print total}'
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #linux #count #number #lines #files
ADD COMMENT
Topic
Name
1+8 =