我在这里阅读了一个教程,我可以使用
while read line do wget -x "http://someurl.com/${line}.pdf" -o ${line}.pdf done < inputfile
但是,此脚本继续以不包含任何值的 $line 运行。如果下一行为空或出现某些“信号”字,我该如何更改脚本停止的代码。
感谢您的帮助
shell-script
shell-script ×1