I have a very simple question, I have 10,000 files in a directory with the name simulations_0.root to simulations_9999.root.
I want to merge 500 files together to make them bigger in size. I need to run hadd, selecting simulations_0.root to simulations_499.root; simulations_500.root to simulations_999.root and so on.
hadd will take multiple input files as command line arguments:
Synopsis
hadd outputfile inputfiles ...
My question is how can I select those files from 0 to 500 at once in the hadd command?