相关疑难解决方法(0)

bash - 用新行替换空格

如何在输入中用新行替换空格,例如:

/path/to/file /path/to/file2 /path/to/file3 /path/to/file4 /path/to/file5 等等...

要获得以下内容:

/path/to/file
/path/to/file2
/path/to/file3
/path/to/file4
/path/to/file5
Run Code Online (Sandbox Code Playgroud)

笔记

我发布这个问题是为了帮助其他用户,在我开始输入这个问题之前,在 UNIX SE 上找到有用的答案并不容易。之后我发现了以下内容:

相关问题

如何找到并替换新行?

bash string text-processing

120
推荐指数
5
解决办法
23万
查看次数

标签 统计

bash ×1

string ×1

text-processing ×1