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

8 lines
109 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
2019-10-10 08:56:31 +08:00
echo The next state is $test
2019-05-10 11:17:57 +08:00
done