KMA shell, I'm guessing, so you'd want this:
#!/bin/kmash
Ben 8]
On 2/7/06, T. Joseph CARTER
<[EMAIL PROTECTED]> wrote:
On Tue, Feb 07, 2006 at 02:57:11PM -0800, John Sechrest wrote:
> There is a unix command called WC (word count)
>
> if you say wc -l *.c , you will get line counts for all the files
count=0
for a in *.[ch]; do
count=$(($count + $(wc -l < $a)))
done
echo $count
--
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit."
-- Aristotle
_______________________________________________ EUGLUG mailing list [email protected] http://www.euglug.org/mailman/listinfo/euglug
