10 lines
194 B
Bash
10 lines
194 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
#
|
||
|
|
# A 'for' loop that uses multiple expressions for 'expr1' and 'expr3' courtesy
|
||
|
|
# of the "comma operator"
|
||
|
|
#
|
||
|
|
for ((i = 1, j = 100; i <= 10; i++, j += 10)); do
|
||
|
|
echo "$i $j"
|
||
|
|
done
|