compressing 0 modules

Andrzej 'The Undefined' Dopierała undefine at aramin.net
Fri Feb 1 01:45:49 CET 2008


On Wed, Jan 30, 2008 at 10:31:54AM +0200, Elan Ruusamäe wrote:
> any suggestions how to make the counting proper for empty and non-empty list?
> 
> with echo -n:
> $ echo -n /lib/modules/2.6.22.16-3/misc/nvidia.ko | wc -l
> 0
> 
> $ echo -n ""| wc -l
> 0
[undefine at uml ~]$ echo -n /lib/modules/2.6.22.16-3/misc/nvidia.ko | wc -w
1
[undefine at uml ~]$ echo -n "" | wc -w
0

hm?

-- 
Andrzej 'The Undefined' Dopierała
Linux && Unix && Network administrator
PLD Linux Developer      HomePage: http://andrzej.dopierala.name/
JID: undefine at piastlan.net         e-mail: andrzej at dopierala.name


More information about the pld-devel-en mailing list