我想从每行中删除“/”并添加空格而不是“/”

问题描述 投票:0回答:1

我想从每行中删除“/”并添加空格而不是“/”

输入示例:

7 47562385 47562385 ctttttttttttttttt/cttttttttttttttt

11 48932150 48932150 C/A

6 87733066 87733066 caaaaaaaaaaaaaaaaaaaaaa/cAAaaaaaaaaaaaaaaaaaaaaaa

8 4056078 4056078 cttttttttttttttttttttt/cTTttttttttttttttttttttt

I want the out put like this 

7 47562385 47562385 ctttttttttttttttt cttttttttttttttt

1 48932150 48932150 C A

6 87733066 87733066 caaaaaaaaaaaaaaaaaaaaaa cAAaaaaaaaaaaaaaaaaaaaaaa

8 4056078 4056078 cttttttttttttttttttttt cTTttttttttttttttttttttt
linux sed grep command tr
1个回答
0
投票

通常你可以只使用查找和替换,但如果你的场景不同,你需要以更详细的方式说明。

© www.soinside.com 2019 - 2024. All rights reserved.