Created
October 29, 2019 17:12
-
-
Save Splint3r7/3e9a80a0d6c8659f1020bc1e755b9dda to your computer and use it in GitHub Desktop.
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 | |
FS=$'\n' | |
old_pr=$(ps -eo command) | |
while true; do | |
new_pr=$(ps -eo command) | |
diff <(echo "$old_pr") <(echo "$new_pr") | grep [\<\>] | |
sleep 1 | |
old_pr=$new_pr | |
done | |
//@mreiaz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment