Result of: find -maxdepth 1 -type f | sed "s@./@@" | while read f; do echo -e "$f\n----------\n" >> /tmp/out; cat "$f" >> /tmp/out; echo >> /tmp/out; done Executed in: /sys/devices/pci0000:00/0000:00:13.2/usb2/2-3 and binary and empty files taken out -------------------------------------------------------- dev ---------- 189:129 bDeviceSubClass ---------- 00 bDeviceProtocol ---------- 00 devpath ---------- 3 idVendor ---------- 05e3 speed ---------- 480 bNumInterfaces ---------- 1 bConfigurationValue ---------- 1 bMaxPacketSize0 ---------- 64 busnum ---------- 2 devnum ---------- 2 configuration ---------- bMaxPower ---------- 500mA authorized ---------- 1 bmAttributes ---------- 80 bNumConfigurations ---------- 1 maxchild ---------- 0 bcdDevice ---------- 9451 avoid_reset_quirk ---------- 1 quirks ---------- 0x10 version ---------- 2.00 uevent ---------- MAJOR=189 MINOR=129 DEVNAME=bus/usb/002/002 DEVTYPE=usb_device DRIVER=usb PRODUCT=5e3/723/9451 TYPE=0/0/0 BUSNUM=002 DEVNUM=002 urbnum ---------- 3648615 ltm_capable ---------- no manufacturer ---------- Generic removable ---------- unknown idProduct ---------- 0723 bDeviceClass ---------- 00 product ---------- USB Storage