I've problem for counting rows of multiple text(.txt) file. How can i use command to get the row count.
The test files is like this.
txt file1 txt file2
a,1111 z,999
b,2222 y,888
c,3333 x,777
I've tried cmd wc -l filename | awk '{print $1}' and the output is
3
3
6
if cmd like this wc -l filename (without awk), the output,
3 file1
3 file2
6 total
How can i get only the total value (in above case '6')
Please help me