Created
October 25, 2016 13:12
-
-
Save mikerr/ffe44724ebc78903c81b1f1b5f6bb82c to your computer and use it in GitHub Desktop.
Get all SERIAL numbers from connected hard drives/ SD cards and flash drives....
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for f in `ls -1d /dev/*` ; | |
| do | |
| udevadm info -n $f 2>/dev/null |grep -i serial ; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment