linux-tutorial/codes/shell/示例脚本/逻辑控制/读取列表中的值.sh

8 lines
106 B
Bash
Raw Normal View History

2019-05-10 11:17:57 +08:00
#!/bin/bash
# basic for command
for test in Alabama Alaska Arizona
do
echo The next state is $test
done