【发布时间】:2021-08-14 09:03:06
【问题描述】:
我有一个简单的文件,内容存储在 temp.txt 中
Here I lay in the depths of hell waiting to be rescued by my charming warrior.
一旦我使用 sed 命令替换
sed -i "s/hell/HELL/p" ./temp.txt
这是我得到的结果
Here I lay in the depths of HELL waiting to be rescued by my charming warrior.
Here I lay in the depths of HELL waiting to be rescued by my charming warrior.
有什么建议吗?
【问题讨论】: