I've got the following bash function to print the name of all directories
relative to the current path and change each directories permission.  The
script fail to pickup directories with a space in the name though.
Corrections to the script would be much appreciated.


#!/bin/bash

for each in `find . -name "*"`

do

        if [ -d "$each" ]; then

                echo "$each"
                chmod 2770 "$each";

        fi

done








_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to