有一个比较大的文件格式类似是这样的:
INSERT INTO tables
VALUES ('14405409',NULL,'1','6009399','0302','030200','03020219','A',NULL,'030000','2016-07-01',NULL,NULL);
INSERT INTO tables
VALUES ('14405410',NULL,'1','6042108','0302','030200','03020219','A',NULL,'030000','2016-07-01',NULL,NULL);
INSERT INTO tables
VALUES ('14405411',NULL,'1','6078765','030','030200','03020219','A',NULL,'030000','2016-07-01',NULL,NULL);
现在想直接跑 shell 把所有行记录的日期字段,如第一行的 2016-07-01 在前面加 to_date('2016-07-01','YYYY-MM-DD')
比如:
INSERT INTO tables
VALUES ('14405409',NULL,'1','6009399','0302','030200','03020219','A',NULL,'030000',to_date('2016-07-01','YYYY-MM-DD'),NULL,NULL);
请教一下该怎么写