linux shell for循环使用命令中读取到的值实例 #!/bin/bash file="states" for state in `cat $file` do echo "Visit beautiful $state" done