Skip to content

Instantly share code, notes, and snippets.

@bmmalone
Created April 30, 2017 17:09
Show Gist options
  • Save bmmalone/3944e36bd9e0be5e426e396c6b02f49d to your computer and use it in GitHub Desktop.
Save bmmalone/3944e36bd9e0be5e426e396c6b02f49d to your computer and use it in GitHub Desktop.
Find processes from the current user which match the given regex
#! /usr/bin/env bash
ps aux | grep -E $USER.*$1 | grep -v 'grep\|-bash\|sshd:\|ps aux\|less' | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment