函数格式版:
for day in $(seq 17 23)
do
folder=2017-09-${day}
grep "clickid=807c98" ${folder}/* >> "clickid_807c98_2017-09-17_23_conver.txt"
done
一行版:
for day in $(seq 17 23); do folder=2017-09-${day}; grep "clickid=807c98" ${folder}/* >> "clickid_807c98_2017-09-17_23_conver.txt"; done