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
regards
Reply to:
- Follow-Ups:
- Re: sed :(
- From: Tzafrir Cohen <tzafrir@cohens.org.il>
- References:
- sed :(
- From: josep <k.joseph1977@gmail.com>
- Re: sed :(
- From: Johannes Wiedersich <johannes@physik.blm.tu-muenchen.de>
- Re: sed :(
- From: Tzafrir Cohen <tzafrir@cohens.org.il>
- Re: sed :(
- From: Emanoil Kotsev <deloptes@yahoo.com>
- Re: sed :(
- From: Tzafrir Cohen <tzafrir@cohens.org.il>