How can I use a find with -exec in a .spec file? It appears that the {} is being put in quotes and not doing what I'd expect. Is there a way for me to prevent the quoting and make this work? Thanks, Dave
On Sat, May 16, 2015 at 11:17 AM, Dave Johansen davejohansen@gmail.com wrote:
How can I use a find with -exec in a .spec file? It appears that the {} is being put in quotes and not doing what I'd expect. Is there a way for me to prevent the quoting and make this work? Thanks, Dave
Nevermiind. This was a stupid mistake on my part. I had a logical error. I was doing "find -name "a*" -or -name "b*" -exec cmd {} ; and forgot that the I needed to enclose the -or in ( ) so that the -exec would happen on all conditions. Sorry for the noise, Dave
On Sat, May 16, 2015 at 3:02 PM, Dave Johansen davejohansen@gmail.com wrote:
Nevermiind. This was a stupid mistake on my part. I had a logical error. I was doing "find -name "a*" -or -name "b*" -exec cmd {} ; and forgot that the I needed to enclose the -or in ( ) so that the -exec would happen on all conditions. Sorry for the noise, Dave
If I may suggest? Next time, use two find commands for legibility.
On Sun, May 17, 2015 at 5:59 AM, Nico Kadel-Garcia nkadel@gmail.com wrote:
On Sat, May 16, 2015 at 3:02 PM, Dave Johansen davejohansen@gmail.com wrote:
Nevermiind. This was a stupid mistake on my part. I had a logical error.
I
was doing "find -name "a*" -or -name "b*" -exec cmd {} ; and forgot that the I needed to enclose the -or in ( ) so that the -exec would happen
on
all conditions. Sorry for the noise, Dave
If I may suggest? Next time, use two find commands for legibility.
Thanks for the tip. I changed it to the following to simplify things: find -name "a*" -or -name "b*" | xargs cmd
packaging@lists.fedoraproject.org