[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sed :(

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


Reply to: