Bash for-loop
- for
#!/usr/bin/env bash
FRUITS="Apple Banana Peach Orange Strawberry"
for f in $FRUITS
do
echo $f
done
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
#!/usr/bin/env bash
FRUITS="Apple Banana Peach Orange Strawberry"
for f in $FRUITS
do
echo $f
done