[SunHELP] what does {} \ mean?
John Kennedy
sunhelp at sunhelp.org
Mon Jul 9 08:11:03 CDT 2001
Andrew,
The {} tells the shell to execute the command (in this case ls -ldb) on the
result of the find.
For example if the find command fount a file named foo owned by root with 4000
permission it would run ls -ldb /path/to/foo.
The backslash is there so that the user's shell doesn't interpret the
semi-colon. I forget exactly why the find command needs the semi-colon
(something to do with having to put a semi-colon after each line in source code
for c and c++).
John
"Meng, Andrew" wrote:
>
> hello,
>
> Can anyone explain to me what { } \ means in find . -user root -perm -4000
> -exec ls -ldb {} \.
>
> Thanks!
>
> Andrew
>
> **************************************************************************
> The Information transmitted herewith is sensitive information intended only
> for use to the individual or entity to which it is addressed. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any review, retransmission, dissemination, distribution, copying or other
> use of, or taking of any action in reliance upon, this information is
> strictly prohibited. If you have received this communication in error,
> please contact the sender and delete the material from your computer.
> _______________________________________________
> SunHELP maillist - SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list