首页 > sed 如何在收尾添加单引号

sed 如何在收尾添加单引号

rt

想把下面每行的收尾添加一个单引号 但是\'不行
应该写呢?


sed "s/$/'/" input_file

bash下测试通过。

【热门文章】
【热门文章】