gpt4 book ai didi

Linux 替换换行符

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:42:41 25 4
gpt4 key购买 nike

输入

aaaa
bbbb
cccc

输出

aaaa
< _jupijuice_ >
bbbb
< _jupijuice_ >
cccc
< _jupijuice_ >

简单来说,将\n 替换为\n<jupijuice>\n

最佳答案

awk '{print; print "< _jupijuice_ >"}' input.txt

输出:

aaaa
< _jupijuice_ >
bbbb
< _jupijuice_ >
cccc
< _jupijuice_ >

关于Linux 替换换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25009070/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com