Files
hpr_website/www/eps/hpr2689/hpr2689_bash14_ex2.sh

10 lines
194 B
Bash
Executable File

#!/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