Re: wc command in ksh
- From: "bsh" <brian_hiles@xxxxxxxxxxxxxx>
- Date: 15 May 2006 13:34:42 -0700
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
.
- Follow-Ups:
- Re: wc command in ksh
- From: Chris F.A. Johnson
- Re: wc command in ksh
- References:
- wc command in ksh
- From: aoliveira
- Re: wc command in ksh
- From: Chris F.A. Johnson
- Re: wc command in ksh
- From: Xicheng Jia
- Re: wc command in ksh
- From: Chris F.A. Johnson
- wc command in ksh
- Prev by Date: Re: one header file
- Next by Date: Re: one header file using awk '(FNR > 1) {print $0}'
- Previous by thread: Re: wc command in ksh
- Next by thread: Re: wc command in ksh
- Index(es):