[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #32519] Back-quoted `uuidgen` in -exec part is not executed everyti
From: |
Eric Blake |
Subject: |
[bug #32519] Back-quoted `uuidgen` in -exec part is not executed everytime |
Date: |
Thu, 17 Feb 2011 17:41:51 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Red Hat/3.6.13-2.el6_0 Firefox/3.6.13 |
Update of bug #32519 (project findutils):
Status: None => Invalid
Assigned to: None => ericb
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Your problem is that you want to run multiple commands on each -execdir (both
unzip and uuidgen), but -execdir can only run a single command. The solution
is to wrap things in yet another command - a shell that can then exec your
multiple commands.
find -name '*.zip' -execdir sh -c 'unzip "$@" -d `uuidgen -r`' sh {} ;
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32519>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/