[bash] samples name-vale pair to a structure using