Question what don't you rewrite:
a perl Function using all the good perl5 modules like:
File::Find
to traverse trees
Have a look at:
http://wwwcn.cern.ch/dci/perl/pod/_index.html
http://wwwcn.cern.ch/dci/perl/pod/File::Find.html
What I would expect is a real Chown function which is then used by a chown
command rewritten in perl5.
Let me know
On Wed, 30 Oct 1996, Christopher Samuel wrote:
> In message <199610301321.JAA19792@biome.bio.dfo.ca>,
> bill@biome.bio.dfo.ca (Bill Silvert) writes:
>
> > As for the colon vs. period business, there are two approaches;
> > one is just the brute force solution
> >
> > find . -exec chown $USER {} \;
>
> Ugh, that invokes chown/chgrp for each file, a more efficient version
> would be something along the lines of:
>
> find chown-dir -type f -print | xargs chown $USER
>
> Personally I'd favour a Perl version that impliments -R and the
> user.group syntax.
>
> cheers,
> Chris
>
>
------------------------------------------------------------
Arnaud Taddei tel : +41 22 767 9349
CN Division 513 1-019 fax : +41 22 767 7155
CERN mail: Arnaud.Taddei@cern.ch
CH-1211 Geneve 23 URL: http://wwwcn.cern.ch/~taddei
------------------------------------------------------------
Follow-Ups:
-
Re: Chown
From: Dave Barr <barr@math.psu.edu>
References:
-
Re: Chown
From: Christopher Samuel <chris@rivers.dra.hmg.gb>
|
|