The for
loop is the way to do it; there is no equivalent all
construct in bash
.
The Python docs show that these are equivalent: http://docs.python.org/2/library/functions.html#all
Remember, bash
was designed to do one thing (shell operations) very well, so if you find yourself regularly needing higher level constructs, consider choosing a more full-featured language if you can.