我正在尝试使用sed从文本文件中删除电话号码,然后awk直到下一个逗号,但是没有任何运气。
这个...
2020-04-13 17:09:58.934,/abc/blahblahblahI/v1/dennisritchie/7408058445,2020-04-13 17:09:58.687,2020-04-13 17:09:58.934
2020-04-13 17:09:59.387,/cde/bunnyrabbit/v1/tea/generate/9161455644,2020-04-13 17:09:59.322,2020-04-13 17:09:59.387
2020-04-13 17:09:59.567,/fgh/scoobybites/v1/shaggy/markup/7672748033,2020-04-13 17:09:59.459,2020-04-13 17:09:59.567
2020-04-13 17:09:59.640,/xxx/xxxxxxxxxxxxxx/v1/xxx/generate,2020-04-13 17:09:59.624,2020-04-13 17:09:59.640
2020-04-13 17:09:59.796,/yyyy/defoe/v1/aaaaaaaaaal/9820276621?noOfRecords=1&blahlahAccountNo,2020-04-13 17:09:59.523,2020-04-13 17:09:59.796
需要看起来像这样
2020-04-13 17:09:58.934,/abc/blahblahblahI/v1/dennisritchie/,2020-04-13 17:09:58.687,2020-04-13 17:09:58.934
2020-04-13 17:09:59.387,/cde/bunnyrabbit/v1/tea/generate/,2020-04-13 17:09:59.322,2020-04-13 17:09:59.387
2020-04-13 17:09:59.567,/fgh/scoobybites/v1/shaggy/markup/,2020-04-13 17:09:59.459,2020-04-13 17:09:59.567
2020-04-13 17:09:59.640,/xxx/xxxxxxxxxxxxxx/v1/xxx/generate,2020-04-13 17:09:59.624,2020-04-13 17:09:59.640
2020-04-13 17:09:59.796,/yyyy/defoe/v1/aaaaaaaaaal/,2020-04-13 17:09:59.523,2020-04-13 17:09:59.796
请注意,我需要从电话号码到下一个逗号的数据,就像最后一行一样。
任何帮助,将不胜感激。
感谢您为他们解决所有问题提供的解决方案,如下图所示。.请您帮忙
/ dcd / manual / v2 / profile / 9841001122?fields = billingArrangement,billingAccountNo,faId,2020-04-16 09:59:59.740,2020-04-16 09:59:59.825
运行命令后,它给出以下输出
/ dcd / manual / v2 / profile,billingAccountNo,faId,2020-04-16 09:59:59.740,2020-04-16 09:59:59.825
但是预期的输出如下所示,请您帮忙。我被困住了
/ dcd / manual / v2 / profile,2020-04-16 09:59:59.740,2020-04-16 09:59:59.825