compressing 0 modules
glen at pld-linux.org
Fri Feb 1 08:19:53 CET 2008
On Friday 01 February 2008 02:45:49 Andrzej 'The Undefined' Dopierała wrote:
> 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/184.108.40.206-3/misc/nvidia.ko | wc -l
> > 0
> > $ echo -n ""| wc -l
> > 0
> [undefine at uml ~]$ echo -n /lib/modules/220.127.116.11-3/misc/nvidia.ko | wc -w
> [undefine at uml ~]$ echo -n "" | wc -w
it would fail if filename contains spaces. wouldn't want to break on that.
More information about the pld-devel-en