我正在尝试将看起来像“ 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