Ps : Nix fix.
This commit is contained in:
parent
06e6470346
commit
6fad0679d9
|
@ -4,8 +4,8 @@ function ps() {
|
||||||
local process="${1}"
|
local process="${1}"
|
||||||
|
|
||||||
if [[ "${process}" = "" ]]; then
|
if [[ "${process}" = "" ]]; then
|
||||||
/usr/bin/ps aux
|
ps aux
|
||||||
else
|
else
|
||||||
/usr/bin/ps aux | sed -n -e "1p" -e "/${process}/Ip" | sed -e "/sed -n -e 1p -e/d"
|
ps aux | sed -n -e "1p" -e "/${process}/Ip" | sed -e "/sed -n -e 1p -e/d"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue