Joon Guillen wrote:

> > # find /usr -type d -exec chmod <mode> {} \;
> 
> Excellent!  Works like a charm.  One more question, though: what are the
> "{}" and "\;" characters for?

{} stands for each match found. In this case, each directory names.

";" has to be escaped to avoid expansion by the shell, so says the
manual. But I don't know exactly how the shell will interpret ";"
if it's not escaped.

Benj
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to