Re: wc command in ksh




Chris F.A. Johnson wrote:
...
lines=$(( $( wc -l < gribparam.list ) ))
...
lines=$( wc -l < gribparam.list )
Because in some uses the leading spaces will cause problems.

Could you please provide an example to show where the difference
is significant?

=Brian

P.S. YAS: set -- $( wc -l <file ); echo $1 lines

.