On Wed, 2007-11-21 at 05:24 -0500, Ignacio Vazquez-Abrams wrote:
> On Wed, 2007-11-21 at 04:39 -0500, William L. Maltby wrote:
> > On Wed, 2007-11-21 at 10:04 +0100, Ralph Angenendt wrote:
> > > find . -type f -exec chmod 123 {} +
> >
> > Easier to type and more natural (for me). But less efficien
William L. Maltby wrote:
> On Wed, 2007-11-21 at 10:04 +0100, Ralph Angenendt wrote:
>> Shad L. Lords wrote:
>>> find . -type type -print0 | xargs -0 chmod value
>>
>> Or (SUSV compliant):
>>
>> find . -type f -exec chmod 123 {} +
>
> Easier to type and more natural (for me). But less efficient
On Wed, 2007-11-21 at 04:39 -0500, William L. Maltby wrote:
> On Wed, 2007-11-21 at 10:04 +0100, Ralph Angenendt wrote:
> > find . -type f -exec chmod 123 {} +
>
> Easier to type and more natural (for me). But less efficient than the
> xargs version since each file cause a new process to be spawne
On Wed, 2007-11-21 at 10:04 +0100, Ralph Angenendt wrote:
> Shad L. Lords wrote:
> > find . -type type -print0 | xargs -0 chmod value
>
> Or (SUSV compliant):
>
> find . -type f -exec chmod 123 {} +
P.S.
Don't forget to escape the "{" and "}".
>
--
Bill
___
On Wed, 2007-11-21 at 10:04 +0100, Ralph Angenendt wrote:
> Shad L. Lords wrote:
> > find . -type type -print0 | xargs -0 chmod value
>
> Or (SUSV compliant):
>
> find . -type f -exec chmod 123 {} +
Easier to type and more natural (for me). But less efficient than the
xargs version since each f
Shad L. Lords wrote:
> find . -type type -print0 | xargs -0 chmod value
Or (SUSV compliant):
find . -type f -exec chmod 123 {} +
Cheers,
Ralph
pgpzeE6PHw7zH.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.cento
--On Tuesday, November 20, 2007 1:14 PM -0500 Dave <[EMAIL PROTECTED]>
wrote:
My issue is the files were made with spaces so find isn't able to find
them.
Good to know about the -print0 trick.
My rule of thumb is that when I see a space in a filename, that's a clue
that a directory is likel
On Wednesday 21 November 2007 01:19:48 Shad L. Lords wrote:
> try:
> find . -type type -print0 | xargs -0 chmod value
Thanks Shad.
That was really cool. Reminds me to reading man pages more often :)
-print0
True; print the full file name on the standard output, followed
by a null c
Hi,
Thanks a lot.
That did it.
Dave.
- Original Message -
From: "Shad L. Lords" <[EMAIL PROTECTED]>
To: "CentOS mailing list"
Sent: Tuesday, November 20, 2007 1:19 PM
Subject: Re: [CentOS] manipulating files and directories with spaces
Hi,
This
Hi,
This might be a little O.t. so private responses please.
I've got apache and samba running on a CentOS5 box enabling windows
users to add web content. My issue is i've had to restore some backup data
that was previously archived. The permissions aren't matching up so i'm
wanting to us
Hi,
This might be a little O.t. so private responses please.
I've got apache and samba running on a CentOS5 box enabling windows
users to add web content. My issue is i've had to restore some backup data
that was previously archived. The permissions aren't matching up so i'm
wanting to us
11 matches
Mail list logo