- 论坛徽章:
- 1
|
- [root@syh test]# awk -vFS=, '{t=gensub(/(....)-(..)-(..) (..):(..):(..)/,"\\1 \\2 \\3 \\4 \\5 \\6","g",$1);$1=mktime(t)","$2;$2="";print $0}' a
- 1393689600,100 |0|10|||1393689600097|pc|1|true|0|0|3
- 1393689600,209 |0|50|||1393689600207|pc|1|true|0|0|2
- 1393689600,214 |0|12||all|1393689600211|android|3|true|0|0|3
- 1393689600,322 |0|20||all|1393689600320|iphone|3|true|0|0|2
- 1393689600,401 |0|50|||1393689600399|pc|1|true|0|0|2
- 1393689600,618 |0|50|||1393689600615|pc|1|true|0|0|3
- 1393689600,655 |0|50|||1393689600653|pc|1|true|0|0|2
- 1393689600,707 |190|10|||1393689160537|pc|1|false|686|0|176
- 1393689600,745 |0|10|||1393689600742|pc|1|true|0|0|3
- 1393689600,848 |0|10|||1393689600846|pc|1|true|0|0|2
复制代码 |
|