小编Con*_*nfo的帖子

我想使用 sed 或替代解决方案修改文本文件中的每一行

我想使用 sed 或替代解决方案修改文本文件中的每一行

input.txt 包含

line 1
line 2 
line 3 
...
Run Code Online (Sandbox Code Playgroud)

output.txt 应该添加两个字符串和

<before> line 1 and <after each line>
<before> line 2 and <after each line>
<before> line 3 and <after each line>
...
Run Code Online (Sandbox Code Playgroud)

我可以使用 sed 或其他东西吗?

command-line text-processing

6
推荐指数
3
解决办法
4508
查看次数

标签 统计

command-line ×1

text-processing ×1