Created
January 24, 2020 01:46
-
-
Save jautero/542b8070fd6d7d613373099f03ea2981 to your computer and use it in GitHub Desktop.
Miscellaneous scripts
This file contains 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
#!/bin/sh | |
BEFOREFILE=before | |
AFTERFILE=after | |
lsusb >$BEFOREFILE | |
echo -n "Plug or unbluck device and press enter:" | |
read foo | |
lsusb >$AFTERFILE | |
diff $BEFOREFILE $AFTERFILE | |
rm $BEFOREFILE $AFTERFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment