[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wasted disk space

On Tue 03 Oct 2000, Herbert Xu wrote:
> Paul Slootman <paul@murphy.nl> wrote:
> > or:
> > 	for i in {a,b,c,d,e}; do
> > 	    for j in {0,1,2,3,4}; do
> > 		echo $i-$j
> > 	    done
> > 	done
> What's the difference between
> 	for i in {a,b,c,d,e}; do
> and
> 	for i in a b c d e; do
> in bash?

Nothing ;-) I shouldn't try to make a point before 2 cups of coffee
in the morning.

I should have said that:

	echo {a,b,c,d,e}-{0,1,2,3,4}

is a replacement for:

        for i in a b c d e; do
            for j in 0 1 2 3 4; do
                echo $i-$j

which is a lot more to type and more prone to typos
(eg. forgetting a semicolon somewhere).

Paul Slootman
home:       paul@wurtel.demon.nl http://www.wurtel.demon.nl/
work:       paul@murphy.nl       http://www.murphy.nl/
debian:     paul@debian.org      http://www.debian.org/
isdn4linux: paul@isdn4linux.org  http://www.isdn4linux.org/

Reply to: