-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Peng Yu on 11/28/2009 9:18 AM:
>> If find is considering the file /tmp/a/foo.sh, it runs this shell command...
>>
>> test ! -f "${1%.sh}.py"'
>>
>> with $1 set to /tmp/a/foo.sh.To see that work, type this:
>>
>> set /tmp/a/foo.sh
>> te
On Sat, Nov 28, 2009 at 4:12 AM, James Youngman wrote:
> On Sat, Nov 28, 2009 at 12:09 AM, Peng Yu wrote:
>> On Fri, Nov 27, 2009 at 2:54 PM, Eric Blake wrote:
>>> find -name '*.py' -print -o -name '*.sh' \
>>> -exec sh -c 'test ! -f "${1%.sh}.py"' sh {} \; -print
>>
>> I don't quite understand
On Sat, Nov 28, 2009 at 12:09 AM, Peng Yu wrote:
> On Fri, Nov 27, 2009 at 2:54 PM, Eric Blake wrote:
>> find -name '*.py' -print -o -name '*.sh' \
>> -exec sh -c 'test ! -f "${1%.sh}.py"' sh {} \; -print
>
> I don't quite understand how the command after -exec works. Would you
> please let me k