Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: I've forgotten again how to do this --> 0-100



> if I want to make a loop to go from 0 to 100, how do I do that?
> 
> for i in 0-100; do
> 	echo $i
> done

for i in {0..100}; do
    echo $i
done

> ps -- what is this actually called, so I can possibly find it in the man pages ?

brace expansion, I believe.

Danek



Messages sorted by: Reverse Date, Date, Thread, Author