Home: General Discussions: General Questions:
chmod



1user
Novice

Oct 11, 2001, 10:45 PM


Views: 6541
chmod

Can/Is there anyway to chmod all files in a directory at once instead of one at a time?



mhx
Enthusiast

Oct 12, 2001, 3:18 AM


Views: 6540
Re: chmod

Perl's chmod takes a list of files. So that shouldn't be a problem:

Code
chmod 0664, <*>;

Hope this helps.

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"