awk rows count 1

awk rows count

awk 'END{print NR}' file1 file2

Here is what the above code is Doing:
1. The first awk command prints the number of lines in file1.
2. The second awk command prints the number of lines in file2.
3. The third awk command prints the total number of lines in both files.

Similar Posts