Read lines with awk regardless of line ending style
3 answers
You can write a script to count the number of lines and get the perfect result. The script for this is also available here Count Number of lines in UNIX that have data
+1
source to share