How do you show the number of lines in a file in Linux
Linux320
description
View the content of cmdhelp.txt in Linux, and number non-blank lines
command
cat -b cmdhelp.txt
parameter
cat : Concatenate FILE(s) to standard output. -b, --number-nonblank : number nonempty output lines, overrides -n
result
1 a 2 b 3 c 4 d 5 e