2011-12-23(Friday) 16:58:27 -0800, CHEN Xing <[email protected]>:
> 不懂正好可以借机看一下~ sed一般就可以: > sed -i 's/FROM/TO/g' filename.txt 多谢这位大洋彼岸的大哥!并非我懒,其实我查过 man 的,而且试着使用 sed 's/FROM/TO/' filename.txt >> NewFile.txt 去实现。但发现它只能对每 行替换一次,原来是少了个 "g". -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

