The default options print the names of all groups and datasets of an h5 file recursively to stdout:
$ hdf5-ls my_file.h5
+- File "/"
+- Group "/My Group"
+- Dataset "/My Group/First Dataset"
+- Dataset "/My Group/Second Dataset"
+- Group "/Another Group"
+- Dataset "/Another Group/Third Dataset"
Pretty printing can be disabled with the --plain
flag:
$ hdf5-ls --plain my_file.h5
/My Group
/My Group/First Dataset
/My Group/Second Dataset
/Another Group
/Another Group/Third Dataset
Download and install with git and cargo:
git clone https://github.com/loenard97/hdf5-ls.git
cd hdf5-ls
cargo install --path .