Renamed new function to 'topby'.

This commit is contained in:
Heavy 2022-04-04 15:53:53 +02:00
parent 0bd9de0021
commit b7a65468e4

View File

@ -127,8 +127,8 @@ deblist() {
} }
{{- end }} {{- end }}
# Run 'top' with list of processes matching name. # Run 'top' by a list of processes matching name.
topof() { topby() {
local name=${1:?name required} local name=${1:?name required}
local pidlist="$(pidof $name | sed 's/ /,/g')" local pidlist="$(pidof $name | sed 's/ /,/g')"
top -p $pidlist top -p $pidlist