awk -F "," '{print strftime("%Y%m%d", $4) }' txt
19700101
19700101
19700101
19700101
19700101
19700101
$ cat txt
"0553","551","","1999/12/21","2999/12/20 23:59:59",""
"0564","551","","1999/12/21","2999/12/20 23:59:59",""
"0556","551","","2999/12/21","2999/12/20 23:59:59",""
"0563","551","","1999/12/21","1994/12/20 23:59:59",""
"0562","551","ͭ"1999/12/21","2999/12/20 23:59:59",""
"0552","551","","1999/12/21","1999/12/20 23:59:59",""
$
我想格式化输出第4列 为什么上面输出为19700101,
如何打印系统时间大于第四列的时间串的行数据呢?
哪位大佬帮忙解答下谢谢
|