Tzafrir Cohen wrote:

>> 
>> Oh, this is nonsense
>> 
>> we would then use echo to do the job of sed, wouldn't we?
> 
> Nither. We let $SHELL expand the command-line first.
> 
> But if you want a more complex example with sed:
> 
>   sed -e "somano "with" a dog" /etc/passwd
>   sed -e "somano \"with\" a dog" /etc/passwd
> 

don't try to fool me on sed pls

  sed -e "s:man: "with" a d:g" /etc/passwd
  sed -e "s:man: \"with\" a d:g" /etc/passwd

is there any difference or is it more readable?

I meant you can not compare echo with sed

regards


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to