how to count lines in a unix file
Open a terminal window or log into an SSH session to access a command prompt. Type the command wc-l filename to show the number of lines in the file. Replace filename with the exact name of the file. Press the Enter key to display the information on the next line.pen a terminal window or log into an SSH session to access a command prompt. Type the command wc-l filename to show the number of lines in the file. Replace filename with the exact name of the file. Press the Enter key to display the information on the next line.