linux中批量替換文本中字符串

(一)經過vi編輯器來替換。 vi/vim 中可使用 :s 命令來替換字符串。 :s/well/good/ 替換當前行第一個 well 爲 good :s/well/good/g 替換當前行全部 well 爲 good :n,$s/well/good/ 替換第 n 行開始到最後一行中每一行的第一個 well 爲 good :n,$s/well/good/g 替換第 n 行開始到最後一行中每一行全部
相關文章
相關標籤/搜索