Help - Python syntax - repeats script through subordinate folders

Michael Torrie torriem at gmail.com
Sat Sep 7 23:34:53 EDT 2013


On 09/07/2013 09:09 PM, BlueFielder wrote:
> I 'think' I did as you instructed …. but that too failed. :( 
> 
> 
> CiMac:ddd camforx$ find -type d -execdir bash -c 'cd {}; python ./fxp2aupreset.py ./ aumu Alb3 LinP vstdata' \;
> find: illegal option -- t
> usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
>        find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

Some versions of find require a path first.  Try this (all one line):

find  . -type d -execdir bash -c 'cd {}; python ./fxp2aupreset.py ./
aumu Alb3 LinP vstdata' \;



More information about the Python-list mailing list