【发布时间】:2012-09-30 02:02:55
【问题描述】:
这是我的脚本:
while [[ $startTime -le $endTime ]]
do
thisfile=$(find * -type f | xargs grep -l $startDate | xargs grep -l $startTime)
fordestination=`cut -d$ -f2 $thisfile | xargs cut -d ~ -f4`
echo $fordestination
startTime=$(( $startTime + 1 ))
done
【问题讨论】:
-
它获取用户的日期和时间输入,然后在匹配这些输入和输出 $fordestination..
标签: performance bash loops while-loop