Created
March 20, 2018 07:32
-
-
Save olastor/a54d276681ee7af0603556cc4fd87e36 to your computer and use it in GitHub Desktop.
Allows to see info from dmesg command for device only by removing or adding it while running this script
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
#!/bin/bash | |
A=$(dmesg) | |
echo "Remove or add your device now." | |
sleep 5 | |
B=$(dmesg) | |
diff <(echo "$A") <(echo "$B") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment