I am trying to use chown -R to selectively change permissions on files.

A series of files are contained in many folders under the root data folder. No
files are stored in the data folder itself.

Running

chown -R user:group /data/*.dat

run
from /data generates an error indicating no files match. If I move a
.dat
file into /data the ownership changes in that folder but not those
below.

chown -R user:group /data/*

works as expected

Is there a way to selectively change files recursively ?

Thanks


      Need a Holiday? Win a $10,000 Holiday of your choice. Enter
now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1l
Y2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lB
HRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http%3A//au.rd.yahoo.com/mail/tagline/cre
ativeholidays/*http%3A//au.docs.yahoo.com/homepageset/%3Fp1=other%26p2=au%26p
3=mailtagline

Reply via email to