匹配一个单词在其行首注释# sed -i '/CustomLog/s/^/#&/' 1.txt在sed里的space是\s#sed 's/\(\s*keyword.*\)/#\1/g' 1.txt
评论
分享到微信
打开微信,点击顶部的“╋”, 使用“扫一扫”将网页分享至微信。