Take it a step further and get rid of leading blanks or tabs too by assigning the result to an integer variable. Using the korn shell, which supports this:
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
line count
gives: 2000 filename
This gives the # of lines and also shows the filename.
I want to extract the # of lines only (2000) and not show the filename. I want to try to do this in one line and not have temporary lines.
Thanks