> I have a problem with the following script under Solaris 8 on Sparc: I am > trying to count the lines in a file but the output of 'linecount' is always Have you decided not to use wc? You can use "wc -l [filename]" to get the total number of lines - slightly easier. It also lends itself to scripting a little better. Kurt