ps : hide sed from itself.
This commit is contained in:
parent
7c464402f0
commit
ef5ac27022
|
@ -6,6 +6,6 @@ function ps() {
|
||||||
if [[ "${process}" = "" ]]; then
|
if [[ "${process}" = "" ]]; then
|
||||||
/usr/bin/ps aux
|
/usr/bin/ps aux
|
||||||
else
|
else
|
||||||
/usr/bin/ps aux | sed -n -e "1p" -e "/${process}/Ip"
|
/usr/bin/ps aux | sed -n -e "1p" -e "/${process}/Ip" | sed -e "/sed -n -e 1p -e/d"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue