Re: changing permissions of files in directories
On Wednesday 08 October 2003 08:00, Lukas Ruf wrote:
>> John Habermann <j_habermann@tpg.com.au> [2003-10-08 08:52]:
>>
>
>> Hi
>>
>> I am just wondering if there is anything out there that lets you
>> change permissions of all files in a directory tree but not the
>> directories. I need the directories to stay executable but want to
>> set the files to be read only.
>>
>
> find <path> -type f | xargs chmod 0644
I would have come up with
find PATH -type f -exec chmod 0644 '{}' ';'
Is the version with xargs better, and how?
Thanks,
Adam
Reply to: