小编use*_*669的帖子

如何使用AWK或Sed在x个单词之后插入换行符\n

我在一行中有这个:

We were born in the earth beyond the land
Run Code Online (Sandbox Code Playgroud)

我希望它在3个单词行中,如下所示:

We were born
in the earth 
beyond the land
Run Code Online (Sandbox Code Playgroud)

unix linux bash shell awk

3
推荐指数
1
解决办法
5906
查看次数

标签 统计

awk ×1

bash ×1

linux ×1

shell ×1

unix ×1