Created
April 24, 2023 05:18
-
-
Save dahngeek/86f7dd20e8b1be59e720521926bee2e0 to your computer and use it in GitHub Desktop.
count instances of a command without counting grep searching it
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
ps -aux | grep "scrolldown.sh" | grep -vc grep | |
// remove c to list instead of count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment