如何让这个暂停10分钟然后开始备份并不断循环……
#!/bin/sh for page in {1..50} do wget -q -U Mozilla "http://www.domain.com/cat_search/item.html?p=$page" -O - \ | tr '"' '\n' | grep "^Item photo for " | cut -d ' ' -f 4 >> bpitem.txt sleep 15 done
像这样将代码包含在内:
while [ 1 ] do your_code sleep 600 done