Thank you for so many people give me the answers.  The solution can be 
following way:
        grep -v '^$' myfile | wc -l
        sed -e '/^$/d' <file> | wc -l
        nl file|sort|uniq|wc -l
        cat -n file |tail will  do the trick.
My original post:
>I have SOLARIS 2.5 installed.  I tried to count how many NONE empty line 
>on a file.  No matter I use "nl file|wc -l" or "nl -bt file|wc -l", it 
>still count empty line as a line.  Does anyone can tell me what i am 
>wrong?  Does their has any other utility can do the same thing?  Thank 
>you for help.
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:56 CDT