[SunHELP] help with script
Will Mc Donald
sunhelp at sunhelp.org
Fri Nov 2 06:47:40 CST 2001
From: "Kurt Huhn" <kurt at k-huhn.com>
> > 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.
I was thinking that myself earlier. I tried Gavin's script and it works fine
under bash and ksh. I think something he's relying on isn't supported under
/bin/sh ?
Will.
More information about the SunHELP
mailing list