Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: File::Copy::Recursive - current file/directory being processed

by jcb (Priest)
on Jan 02, 2020 at 00:25 UTC ( #11110850=note: print w/replies, xml ) Need Help??


in reply to Re^2: File::Copy::Recursive - current file/directory being processed
in thread File::Copy::Recursive - current file/directory being processed

Certainly the tests I am having are showing some really good speed advantages in Linux anyways.

Speed advantages compared to what? While implementing these commands in Perl can be a good exercise, I would be very surprised if a Perl program is faster than the system rm, mv, and cp commands, all of which are implemented in C on GNU systems — and most distributions of Linux use the GNU coreutils package. All of those commands accept the -v option to list the files on which they act and that can be easily translated to "running dots" with Awk: (untested)

cp -v $FROM $TO | awk '{print "."}'

I am not entirely convinced that Perl is the right tool for this job, unless, again, you are doing this as a programming exercise.

  • Comment on Re^3: File::Copy::Recursive - current file/directory being processed
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11110850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-06-02 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (19 votes). Check out past polls.

    Notices?