bash 替换特殊字符
PID=`netstat -tpln|grep 8002`;PID=${PID#*LISTEN};PID=`echo $PID | sed -s "s/\/java//g"`
原文:http://www.cnblogs.com/xiluhua/p/7338100.html