請教關於sed指令的用法 - Linux

Table of Contents


sed command 有很多參數選項
其中 -e 我看到的解釋是說直接在指令列模式上進行 sed 動作
如果以下列的例子來說是會有相同的結果
cat *.txt | sed 's/vxx/goo/'
cat *.txt | sed -e 's/vxx/goo/'
我想請問一下 -e 參數在什麼情況下會使用到呢??

--

All Comments

Catherine avatarCatherine2009-10-06
要連續進行很多動作的時候