On Saturday, September 7, 2013 9:56:25 PM UTC-4, Chris Angelico wrote: > Your initial command and path suggest you're on a Unix-like system > > (these days that most likely means either Linux or Mac OS), but the > > FOR command at the end is a Windows command, so that's not going to > > work. However, Unix does have a find command, so that should work
Hi Chris. Thank you so much for your rely. Yes…. I am doing this on a Mac OS > > Do you need to run your script once for each file, or once for each > > directory? Based on your use of "for /r", I'm thinking once per > > directory. I wish to run the script just once on the parent folder…. and have it run through all the 86 subordinate folders that reside in that parent folder. > $ find -type d -execdir bash -c 'cd {}; python ./fxp2aupreset.py ./ > > aumu Alb3 LinP vstdata' \; > > > I'm sure there's a tidier way to do it, but this should work! OK I will try that as soon as I can and post the results. FWIW: I'm not convened with 'tidy' … as I will only being coin this once. So very kind of you to help. HT to you sir. -- https://mail.python.org/mailman/listinfo/python-list