1.命令 echo "(hello\) main --- wrd" | sed 's/[()\-]//g' 2. 正则表达式 http://www.w3school.com.cn/jsref/jsref_obj_regexp.asp