awk 多分隔符

#!/bin/bash 
log_path="./log/"
dates=`date -d '-1 days' +'%Y%m%d'`
cd $log_path;
for i in `cat list`;do wget $i:/home/work/odp/log/search/search.log.${dates}22 ./;done
cd ../;
cat ${log_path}/search.log.${dates}* |python cal_adv.py |awk -F '\t|:' '{if($2>400){print $0}}'|sort -nrk1>./result/result.$dates
cp ./result/result.$dates /home/work/opsite/webroot/
posted @ 2014-09-03 19:54  梦轩闲骨  阅读(90)  评论(0编辑  收藏  举报