cat my_file.txt | sed '4,5 s/Google/Yahoo/g' > new.txt ←將檔案〝my_file.txt〞中第4~5 行中的字串〝Google〞改〝Yahoo〞並存檔為〝new.txt〞
確定! 回上一頁