[augeas-devel] augtool set results in "error: Too many matches for path expression"

Kristoffer Knigga kknigga at choppertrading.com
Mon Sep 30 15:42:58 UTC 2013


That did the trick.  Thank you!


Kris Knigga


-----Original Message-----
From: augeas-devel-bounces at redhat.com [mailto:augeas-devel-bounces at redhat.com] On Behalf Of Dominic Cleal
Sent: Monday, September 30, 2013 10:20 AM
To: augeas-devel at redhat.com
Subject: Re: [augeas-devel] augtool set results in "error: Too many matches for path expression"

On 30/09/13 16:16, Kristoffer Knigga wrote:
> Should I be able to do such a mass change with one command?

Yes, but not that one.  You need to use "setm" instead, which is
designed for this scenario.  Try something like:

setm /files/etc/yum.repos.d/*/*[label() =~
regexp('.*-debuginfo|.*-source')] enabled 0

See also "augtool help setm".

Regards,

--
Dominic Cleal
Red Hat Engineering

________________________________

CONFIDENTIALITY WARNING: This email including any attachments may contain privileged or confidential information and is for the sole use of the intended recipient(s). Any unauthorized use or disclosure of this communication is prohibited. This e-mail may also be subject to specific non-disclosure and confidentiality provisions. The information contained herein is the property of Chopper Trading, LLC. If you believe that you have received this email in error, please notify the sender immediately and delete it from your system.




More information about the augeas-devel mailing list