Command-line script

Hi all,

I’d like to be able to run a short root script from command-line without needing to create a macro. Primarily so I can do something like this:

I remember doing it once, but I forgot the syntax.

Thanks,
N.

Doecho 'TFile f("file.root");f.ls();' | root -b -q -x | grep bla

Philippe.