【发布时间】:2017-06-09 01:21:43
【问题描述】:
我有以下 CSV 文件,需要用字符“/”转义双引号内的新行
101|abc|this is desc|2017
102|xyz|"thie is a long desc
des for xyz continue here."|2017
103|abc|this is is another long desc
and it stop here"|2017
并且输出应该看起来像下面的文件。如何使用命令中的 Perl 来执行此操作?
101|abc|this is desc|2017
102|xyz|"thie is a long desc/
des for xyz continue here."|2017
103|bbb|"this is is another long desc/
and it stop here"|2017
【问题讨论】:
-
有您的经验的人应该知道,您需要先显示导致问题的代码,然后我们才能为您提供帮助。