特牛网址导航

shell脚本学习sed-CSDN博客

网友收藏
文章浏览阅读453次。sed-i 替换并保存's/pattern/replace_string/' 只替换第一处's/pattern/replace_string/g' 替换所有's/pattern/replace_string/Ng' 从第N处开始匹配# ex 直接替换文本[clz@localhost shell_learn]$ sed -i 's/cecho.sh/xxxxxxxxxxxxxx/' file