One of wgrib2 functions is to inventory grib2 files. The inventory format is very customizable; at present there are 120 options to modify the inventory. However the default inventory (-s) is most often used and understanding this format will help you to understand the structure of the inventory.