Ravi Sir's Cards › AWS
for loop forms
This revision card explains for loop forms. It starts from the need that over a list. It describes over files. The how-to section notes over a range. An example on the card is c style.
Read card text
What this card says
Why do we need it?
Over a list.
for s in a b c; do
What is it?
Over files.
for f in *.log; do
How to do it
Over a range.
for i in {1..5}; do
Example
C style.
for ((i=0;i<3;i++)); do