Re: how could I execute a set of script in a directoy tree?

2007-11-19 Thread 龙海涛
3x for your patience. i find the infomation i want. 3x again :) On Sat, 2007-11-17 at 05:34 -0700, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to 龙海涛 on 11/16/2007 11:21 PM: > > two more questions: > > 1.about syntax (r "$d") > > i didn't find any introduc

Re: how could I execute a set of script in a directoy tree?

2007-11-17 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to 龙海涛 on 11/16/2007 11:21 PM: > two more questions: > 1.about syntax (r "$d") > i didn't find any introduction in 'info bash'. could you tell me how > could find the explanation of '( )'? Search for the term subshell. > > 2.about synax

Re: how could I execute a set of script in a directoy tree?

2007-11-16 Thread 龙海涛
sorry to reply late. i have used your method , it works. two more questions: 1.about syntax (r "$d") i didn't find any introduction in 'info bash'. could you tell me how could find the explanation of '( )'? 2.about synax "find /testcase -name autotest.sh -perm /111 -execdir bash -c ./autotest.s

Re: how could I execute a set of script in a directoy tree?

2007-11-13 Thread Mike Stroyan
On Wed, Nov 14, 2007 at 01:38:01PM +0800, 龙海涛 wrote: ... > but now what i want to do is write a shell script , call all the > autotest.sh in every leaf-directory. You could do that with a recursive function that descends into each directory. Using ( ) around the cd to a subdirectory will return

how could I execute a set of script in a directoy tree?

2007-11-13 Thread 龙海涛
i have a directory, like this /testcase /syntaxcheck /test1 0 (common txt file) 0.expected (common txt file) 1 1.expected ... autotest.sh (shell script) /