标签:
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}}‘
标签:
原文地址:http://www.cnblogs.com/desort/p/4552483.html