in reply to Re^5: Finding and sorting files in massive file directory
in thread Finding and sorting files in massive file directory

Thanks, I'll try it.

I am intrigued by your earlier reference to Archive::Tar. I did look at the module briefly but it seemed rather complicated. What would it add over and above using readdir with while and basic unix commands?

  • Comment on Re^6: Finding and sorting files in massive file directory

Replies are listed 'Best First'.
Re^7: Finding and sorting files in massive file directory
by dave_the_m (Monsignor) on Jan 21, 2013 at 15:25 UTC
    What would it add over and above using readdir with while and basic unix commands
    It allows you to programmatically to select, add files etc, without having to fork out to an external program. For example, if you didn't need to delete the files afterwards, you could have just used my original script, with $tar->add($file) for each matching file. No need to fork out, no command line length limitations etc.

    Dave.