4 ms·
A small tip for the for loops: for n in {9..0}; do echo $n ; done or for n in $(seq 9 -1 0); do echo $n ; done
by slug 16y ago
A small tip for the for loops:
for n in {9..0}; do echo $n ; done
or
for n in $(seq 9 -1 0); do echo $n ; done
- RiderOfGiraffes 16y agoCool - thanks. I did actually know that, but I never got around to changing it to the more efficient version, and it's nice to be reminded.