bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: 龙海涛
Subject: Re: how could I execute a set of script in a directoy tree?
Date: Tue, 20 Nov 2007 11:07:45 +0800

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 introduction in 'info bash'. could you tell me how
> > could find the explanation of '( )'?
> 
> Search for the term subshell.
> 
> > 
> > 2.about synax  "find /testcase -name autotest.sh -perm /111 -execdir
> > bash -c ./autotest.sh \;"
> > what does the last '\' mean?
> 
> It is quoting the ; so that the shell won't parse it.  By itself, ; is a
> shell meta-character, but here, you want it to be an argument to find.
> Read the find documentation for more about why -execdir requires a literal
> ; to end the sequence.  You could also have quoted it as '\' or "\\", but
> that is more typing.
> 
> - --
> Don't work too hard, make some time for fun as well!
> 
> Eric Blake             address@hidden
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Cygwin)
> Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFHPt/I84KuGfSFAYARApv1AKDO+W3IzC6zEcwmAXLdDYF91uZbOACguf/a
> 6GEsYG+ZubAXn1zeBrgn7SM=
> =wzir
> -----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]