Re: find files for user and chown them?
- From: Bill Marcum <bmarcum@xxxxxxxxx>
- Date: Mon, 20 Mar 2006 12:22:12 -0500
On Mon, 20 Mar 2006 15:31:18 +0100, Kai Schaetzl
<ng@xxxxxxxxxxxxxxxxx> wrote:
Chris F.A. Johnson schrieb am Sun, 19 Mar 2006 22:00:24 -0500:This should make it clear:
Then show us what you are using so we can see whether you are
using the correct syntax or not.
find . -user whoever -exec chown someone:somegroup {} \;
Thank you both for the correct syntax. I tried without the escape
slash. Actually, I read about escaping in man, but I did it the wrong
way and tried it for the {}, not for the semicolon. As I understand
the semicolon shows find the end of the -exec command, I didn't expect
it to find it with an escaped semicolon as well. As I understand the
escape is for bash and find gets the unescaped semicolon to "see"?
Doesn't ";" just terminate a shell comand line, anyway, so this
shouldn't make a difference?
echo ;
semicolon ends the command
echo \;
semicolon is an argument
echo \; date ; date
the first date is an argument, the second is a command.
--
Expense Accounts, n.:
Corporate food stamps.
.
- Follow-Ups:
- Re: find files for user and chown them?
- From: Kai Schaetzl
- Re: find files for user and chown them?
- References:
- find files for user and chown them?
- From: Kai Schaetzl
- Re: find files for user and chown them?
- From: Chris F.A. Johnson
- Re: find files for user and chown them?
- From: Kai Schaetzl
- find files for user and chown them?
- Prev by Date: Re: Date Compare
- Next by Date: strange behaviour of "mv" command
- Previous by thread: Re: find files for user and chown them?
- Next by thread: Re: find files for user and chown them?
- Index(es):
Relevant Pages
|