diff options
author | Jakob Stendahl <jakobste@uio.no> | 2020-03-16 15:38:27 +0100 |
---|---|---|
committer | Jakob Stendahl <jakobste@uio.no> | 2020-03-16 15:38:27 +0100 |
commit | 285d9961e53e011ba119db4fdaf4474817624cfd (patch) | |
tree | ee7617b4d163a234198aa9a2ec70a1cd7707fea3 /bin/usbInf | |
parent | 41e4e4f69c8677504c153b95f2b42cd582fb04e5 (diff) | |
download | dotfiles-285d9961e53e011ba119db4fdaf4474817624cfd.tar.gz dotfiles-285d9961e53e011ba119db4fdaf4474817624cfd.zip |
Made some scp scripts
Diffstat (limited to 'bin/usbInf')
-rwxr-xr-x | bin/usbInf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/usbInf b/bin/usbInf new file mode 100755 index 0000000..14e4bf0 --- /dev/null +++ b/bin/usbInf @@ -0,0 +1,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);} + ' |