Skip to content

Instantly share code, notes, and snippets.

@jautero
Created January 24, 2020 01:46
Show Gist options
  • Save jautero/542b8070fd6d7d613373099f03ea2981 to your computer and use it in GitHub Desktop.
Save jautero/542b8070fd6d7d613373099f03ea2981 to your computer and use it in GitHub Desktop.
Miscellaneous scripts
#!/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