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

Re: sed :(



Steve Kemp <skx@debian.org> wrote:
>  Because you've got nested quotes.  e.g. This fails:
>  sed -i "s/"bob"/"chris"/g" /tmp/blah

IMO that's a bad example, because it's not clear that the quotes
surrounding bob and chris are processed by the shell and therefore
never seen by sed. It "seems" to work even though you (correctly) say
it doesn't.

Chris


Reply to: