Skip to content

Commit

Permalink
Now we have a simplistic pidof on Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
jweyrich committed Jun 7, 2012
1 parent df6c3dc commit fcd2d71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bash/bin/pidof
@@ -0,0 +1,3 @@
#!/bin/bash
#/bin/ps axc | /usr/bin/awk "{if (\$5==\"$1\") print \$1}";
/bin/ps ax | /usr/bin/grep -i "$1" | /usr/bin/grep -v 'grep' | /usr/bin/awk {'print $1'} | /usr/bin/xargs

0 comments on commit fcd2d71

Please sign in to comment.