aboutsummaryrefslogtreecommitdiff
path: root/bin/usbInf
blob: 14e4bf01d75bf12a0e24c50df6d3eb0d6a189eb9 (plain) (blame)
1
2
3
4
5
6
7
system_profiler SPUSBDataType \
    | awk '
      /Product ID:/{p=$3}
      /Vendor ID:/{v=$3}
      /Manufacturer:/{sub(/.*: /,""); m=$0}
      /Location ID:/{sub(/.*: /,""); printf("%s:%s %s (%s)\n", v, p, $0, m);}
    '