Re: manipulating files and directories with spaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,
   Thanks a lot.
That did it.
Dave.

----- Original Message ----- From: "Shad L. Lords" <slords@xxxxxxxxxxxx>
To: "CentOS mailing list" <centos@xxxxxxxxxx>
Sent: Tuesday, November 20, 2007 1:19 PM
Subject: Re:  manipulating files and directories with spaces


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 use find and xargs to change them appropriately. Normally i do:
find . -type type |xargs chmod value "{}"\;
which usually works. My issue is the files were made with spaces so find isn't able to find them. Does anyone have a workaround? Some urgency!

try:

find . -type type -print0 | xargs -0 chmod value

-Shad
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux