如何在输入中用新行替换空格,例如:
/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 上找到有用的答案并不容易。之后我发现了以下内容: