文本内容如下: shell脚本如下: #!/bin/bash for line in $(cat 1.txt) do $(wget -P /home/img $line) echo $line done