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: Eric Blake
Subject: Re: how could I execute a set of script in a directoy tree?
Date: Sat, 17 Nov 2007 05:34:16 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----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             ebb9@byu.net
-----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]