码迷,mamicode.com
首页 > 系统相关 > 详细

shell 脚本1

时间:2015-06-04 18:45:57      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

sed 1d classfee20150317.txt | grep -v "classfee:log*" | grep -v "classfee:index*" | grep -v "classfee:ad*" | sed ‘s/:{/:/g‘ | sed ‘s/},//g‘ | sed ‘s/"//g‘ | sed ‘s/,/:/g‘| sed "s/^/${YESTODAY}:/g"| awk -F : -v T=$YESTODAY   ‘{S=strftime("%Y-%m-%d",$11);if(S=T) {print $1 "," $3 "," $5 "," $7 "," $9;} else {print $1 "," $3 ", 0," $7 "," $9}}‘

shell 脚本1

标签:

原文地址:http://www.cnblogs.com/desort/p/4552483.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!