To be able to extract data from lsys output the format should be more csv - like.
$ build/lsys -t block
sysfs type
------------------------------------------------------------------------------- ------------
/sys/devices/pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0/block/sda SCSI device
is harder to parse then
$ build/lsys -t block -d ';'
/sys/devices/pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0/block/sda;SCSI device