shell脚本里面,用什么指令删除字符串中子串
shell脚本里面,用什么指令删除字符串中子串?
例如 字符串abcdefdg,子串efd,从abcdefdg中删除efd。谢谢
例如 字符串abcdefdg,子串efd,从abcdefdg中删除efd。谢谢
作者: ly309431053 发布时间: 2011-06-02
echo "abcdefdg" | sed 's/efd//g'
作者: steptodream 发布时间: 2011-06-02