Skip to content

Instantly share code, notes, and snippets.

@umidjons
Created November 22, 2013 12:27
Show Gist options
  • Save umidjons/7599105 to your computer and use it in GitHub Desktop.
Save umidjons/7599105 to your computer and use it in GitHub Desktop.
Remove grep command while grepping something using ps command
# -v reverse matching, and then search for text 'parse.php'
ps ajx | grep -v grep | grep -c parse.php
# outputs, for example:
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment