代換的指令是s/pattern1/pattern2/, 這個指令要在line mode 使用。 Vi 會將pattern1 取代為pattern2。 ... 這是因為vi 對字串的搜尋是支援regular expression 的。
確定! 回上一頁