A command? Well, certainly no standard bash command (AFAIK).
But someone may have written such a script/tool. That's what it
would take I think. (And none too trivial either).
Well, the folder part would be easy. Not sure how to attack the
file-ranges portion. (You just need someone smarter than me!).
That shouldn't be too hard to find.

At any rate, it'll take some scripting.