shell/结构化命令/在for语句中使用多个变量.sh

8 lines
94 B
Bash

#!/bin/bash
# multiple variables
for (( a=1, b=10; a<=10; a++,b-- ))
do
echo "$a - $b"
done