ps : hide sed from itself.

This commit is contained in:
Dmitry Voronin 2023-12-11 17:05:19 +03:00
parent 7c464402f0
commit ef5ac27022

View file

@ -6,6 +6,6 @@ function ps() {
if [[ "${process}" = "" ]]; then
/usr/bin/ps aux
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
}