linux shell在一个脚本里去掉每一行的 “>”字符 应该怎么去掉呀

如题所述

第1个回答  2010-10-19
[root@localhost test]# cat c
>1 abc 5000
2 ed>f 2000
3 ghi 60>00
3 g>hi 60>00
[root@localhost test]# sed 's/>//g' c
1 abc 5000
2 edf 2000
3 ghi 6000
3 ghi 6000
[root@localhost test]# sed -i 's/>//g' c
[root@localhost test]# cat c
1 abc 5000
2 edf 2000
3 ghi 6000
3 ghi 6000
第2个回答  2010-10-19
文本模式就用vi
图形界面就用gedit
查找替换本回答被网友采纳

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网