...and you'd need more perl code to get the job done.
While it may take more code, using more doesn't have to involve a significant bloat (well, not visually ;)).
use File::Find qw/ find /; my $uid = getpwnam($uname) or die "$uname: no such user"; my $gid = getpwnam($gname) or die "$gname: no such group"; find( sub { chown $uid, $gid => $_ }, @directories );
Not bad for the added portability.
--k.
In reply to Re: Re: system or perl function ?
by Kanji
in thread system or perl function ?
by tbo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |