linux sed替换空格
时间: 2023-10-19 21:59:29 浏览: 285
Linux sed命令可以用来替换空格。在sed命令中,可以使用正则表达式来匹配和替换文本。如果你想将所有空白符(包括空格、回车换行符、制表符等)替换为指定的字符,可以使用sed命令结合正则表达式来实现。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [linux_sed&tr_将所有空白符(空格/回车换行符/制表符/..)替换为指定字符/多个连续的空格转为一个空格](https://blog.csdn.net/xuchaoxin1375/article/details/124382268)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [linux-sed命令使用方法记录](https://blog.csdn.net/qq522044637/article/details/127844069)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文