I have a directory with thousands of files (100K for now). When I use wc -l ./*, I\'ll get:
wc -l ./*
c1 ./test1.txt c2 ./tes
iF you want to know only total number Lines in directory excluding total line
ls -ltr | sed -n '/total/!p' | awk '{print NR}'
Previous comment will give total count of lines which includes only count of lines in all files