iankelling.org
/
git
/
small-misc-bash
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
minor fixes
[small-misc-bash]
/
psg-function
diff --git
a/psg-function
b/psg-function
index ccdd12aff199341b56c2c0d2c90cc99745122049..bdef3516a46d5f7bf3cdf34f41d5cc33f397b974 100644
(file)
--- 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 -
i
P "$@" | grep -o '.*[^ ]')
if [[ $y ]]; then
echo "$x" | head -n 1
echo "$y"