我所理解的sed

替換root 爲另一個 s sed ‘s/root/yinshi/g’ /etc/passwd c整行替換sed ‘s/root/c"yinshi"’ /etc/passwd c第八行 sed ‘8c"yinshi"’ /etc/passwd p sed -n ‘1p’ /etc/passwd p打印奇數行sed -n ‘1~2p’ 22.txt p打印偶數行sed -n ‘2~2p’ 22.tx
相關文章
相關標籤/搜索