From 050d129c573431827cc63f0fd57d2c96c29107c8 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 27 Feb 2013 23:38:10 +0100 Subject: [PATCH] Shell: pgex function. --- .shell.d/funs_rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.shell.d/funs_rc b/.shell.d/funs_rc index 5af1e9d4..99118507 100644 --- a/.shell.d/funs_rc +++ b/.shell.d/funs_rc @@ -894,6 +894,12 @@ $(find . -type d -name ".git") EOF } +## Extended pgrep -a. +pgex () +{ + ps aux | grep "$(echo "$@" | sed 's/./[&]/;q')" +} + ##============================================================================== ## Pacman functions ##==============================================================================