Count lines in all file, also count total lines

ls|xargs wc -l
click the source code to copy