【发布时间】:2020-05-26 02:58:28
【问题描述】:
我想连接以 -abc 开头的行和它的前一行。 它在终端上运行良好,但在 jenkins shell 脚本上使用时出错
嘘''' sed -i -e :a -e '$!N;s/\n-abc/-abc/;ta' -e 'P;D' input.txt '''
错误:sed: -e expression #2, char 6: unterminated `s' command
【问题讨论】:
标签: linux shell jenkins jenkins-pipeline