Yes, they do ... I posted them as alternatives.
As for the -1 in the awk ... I put it in because
my test file didn't have a terminating new-line,
and awk output 1 line more than wc ... :)
Which means that (without a more complex
awk script) the cat | wc combo win :)
Cheers,
Tink
Last edited by Tinkster; 10-08-2004 at 03:02 PM.
|