
05-10-2008
|
|
Technorati Master
|
|
Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,547
|
|
Quote:
Originally Posted by kartikkumar84@g
wc -l filename
does not work because it returns the file name as well, so it cant be used in an expression.
|
there is a way
Code:
cnt=`wc -l < filename`
|