无法用SED命令替换文本

时间:2019-11-05 22:21:30

标签: sed

我正在尝试将看起来像“ pushfilename =,N”的第86行替换为“ pushfilename = C:\ temp \ devices \ scanner \ XYZ_55xx \ Firmware \ 55xx \ NEWFW-PDF.bin,Y “(文件中的行不带引号)。我已经花了几个小时使SED命令起作用,但它给了我“ s命令的RHS无效参考\ 7”错误。请帮忙。

sed -i '86s/pushfilename=,N/pushfilename=C:\temp\devices\scanner\XYZ_55xx\Firmware\55xx\NEWFW-PDF.bin,Y' C:\path_to_file

0 个答案:

没有答案