Print a filtered list histograms stored in a file via command line

Hello,

I have a noobie question here:
I would like a command like this to work:
[0] _file0->Print("myName_*")
or
[1] .ls("myName_*")

That is to print only a subset of the histograms stored in a file, matching the name
This works for TTrees (printing a subset of branches), so would be nice to do that with list of TH1s.

Hi,

perhaps you can try a combination of rootls and grep at the command line.

Cheers,
D

1 Like