Re: [CentOS] manipulating files and directories with spaces

2007-11-22 Thread William L. Maltby
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

Re: [CentOS] manipulating files and directories with spaces

2007-11-21 Thread Ralph Angenendt
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

Re: [CentOS] manipulating files and directories with spaces

2007-11-21 Thread Ignacio Vazquez-Abrams
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

Re: [CentOS] manipulating files and directories with spaces

2007-11-21 Thread William L. Maltby
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 ___

Re: [CentOS] manipulating files and directories with spaces

2007-11-21 Thread William L. Maltby
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

Re: [CentOS] manipulating files and directories with spaces

2007-11-21 Thread Ralph Angenendt
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

Re: [CentOS] manipulating files and directories with spaces

2007-11-20 Thread Kenneth Porter
--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

Re: [CentOS] manipulating files and directories with spaces

2007-11-20 Thread Fajar Priyanto
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

Re: [CentOS] manipulating files and directories with spaces

2007-11-20 Thread Dave
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

Re: [CentOS] manipulating files and directories with spaces

2007-11-20 Thread Shad L. Lords
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

[CentOS] manipulating files and directories with spaces

2007-11-20 Thread Dave
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