Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

How do I chgrp some files? perldoc -f chgrp return nothing...

Replies are listed 'Best First'.
Re: chgrp ?
by repson (Chaplain) on Feb 02, 2001 at 16:57 UTC
    You could try using chown.
    chown getpwnam('username'), getgrnam('group'), @files; chown -1, 1002, @files; # group only chown 1015, -1, @files; # user only