日期:2014-05-16  浏览次数:20790 次

linux中如何替换所有的标点符号
在linux中[:punct:]不是代表所有的标点符号吗?
为什么经 sed -i 's/[:punct:]//g' file4.txt处理后,依旧存在标点符号!
怎么将一个文档中所有的像 , ' "" - \ /等标点符号替换成空格!
初学linux,求帮忙!

------解决方案--------------------
sed -i 's/[[:punct:]]//g' file4.txt


These are always used inside square brackets in the form [[:alnum:]] or combined as [[:digit:]a-d]
 via :http://www.zytrax.com/tech/web/regex.htm