On Wed, 16 Aug 2000, Dwivedi Ajay kumar wrote:

Another option is to write a script using the "test" chomand. I think the
option "-d" checks if a file is a directory, do a "man test" to be sure.
For special characters escape them with a "\"
   hope it helps
                                   sreangsu



> hi all,
>       I have got a dircetory with all its subdirs and files in the mode
> 700. I wish to change the mode of all the directories to 755 and files
> in them to 644. Is there a way it can be done easily? chmod does not seem
> to distinguish between dir and files.
> 
>       Moreover is there a cool way to change the mode of all files
> starting with "." ? ".*" seems to match even ".." and during a recursive
> chmod changes the modes in even the parent directory. 
> 
>       Bye... and thanks in advance.
> -- 
> 
> #!!!  If anything can go wrong, _FIX_ it. (To hell with MURPHY)
>       
>                                               Ajay kumar Dwivedi
>                                                [EMAIL PROTECTED]
> 
> 
> ----------------------------------------------
> LIH is all for free speech.  But it was created
> for a purpose.  Violations of the rules of
> this list will result in stern action.
> 



----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to