X-Git-Url: https://iankelling.org/git/?p=small-misc-bash;a=blobdiff_plain;f=psg-function;fp=psg-function;h=bdef3516a46d5f7bf3cdf34f41d5cc33f397b974;hp=ccdd12aff199341b56c2c0d2c90cc99745122049;hb=7494ae4746d84ba3d28a84b995190e2ca2fd04e5;hpb=e92df2eade42653d73eabc545e7a78697e5a8b6b diff --git a/psg-function b/psg-function index ccdd12a..bdef351 100644 --- a/psg-function +++ b/psg-function @@ -23,7 +23,7 @@ grep ps and output in a nice format" fi x=$(sudo ps -eF) # final grep is because some commands tend to have a lot of trailing spaces - y=$(echo "$x" | grep -P "$@" | grep -o '.*[^ ]') + y=$(echo "$x" | grep -iP "$@" | grep -o '.*[^ ]') if [[ $y ]]; then echo "$x" | head -n 1 echo "$y"