Cameron Simpson wrote:
On 10Dec2008 18:39, Dan Thurman <[EMAIL PROTECTED]> wrote:
[snip!]
You can only do AND by nesting multiple pattern matches:

  /foo/{
    /bar/{
      ... do stuff for "foo" AND "bar"
    }
  }
I tested your suggestion above with and without -r option
but could not make it work as an "AND operator":

# echo "foo har" | sed -re '/foo/{/bar/{s/foo/goo/}}'
goo har


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Reply via email to