minor fixes
[small-misc-bash] / psg-function
index ccdd12aff199341b56c2c0d2c90cc99745122049..bdef3516a46d5f7bf3cdf34f41d5cc33f397b974 100644 (file)
@@ -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"