[問題] 請教關於sed指令的用法

看板Linux作者 (ben)時間16年前 (2009/10/05 16:43), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
sed command 有很多參數選項 其中 -e 我看到的解釋是說直接在指令列模式上進行 sed 動作 如果以下列的例子來說是會有相同的結果 cat *.txt | sed 's/vxx/goo/' cat *.txt | sed -e 's/vxx/goo/' 我想請問一下 -e 參數在什麼情況下會使用到呢?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.15.81

10/05 17:41, , 1F
要連續進行很多動作的時候
10/05 17:41, 1F
文章代碼(AID): #1AoR6PdE (Linux)
文章代碼(AID): #1AoR6PdE (Linux)