小编HUY*_*HUY的帖子

使用 bash 将数字、字符串从一行中分离出来

如何使用 bash 命令将字符串和数字从一行中分离出来。

示例:我有一个包含

string123anotherstr456thenanotherstr789

输出应该是:

string
123
anotherstr
456
thenanotherstr
789
Run Code Online (Sandbox Code Playgroud)

command-line sed awk text-processing

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

标签 统计

awk ×1

command-line ×1

sed ×1

text-processing ×1