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

8 lines
106 B
Bash

#!/bin/bash
# basic for command
for test in Alabama Alaska Arizona
do
echo The next state is $test
done