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
查找替换本回答被网友采纳