bash: psk verbessert
This commit is contained in:
parent
33b239aee5
commit
7def120769
1 changed files with 13 additions and 2 deletions
|
@ -2,8 +2,6 @@
|
|||
function rgf {
|
||||
rg --files -g "*$1*"
|
||||
}
|
||||
function psk {
|
||||
ps -ef | grep $1 | grep -v grep | awk '{ print $2 }' | xargs kill -9
|
||||
}
|
||||
function ffind {
|
||||
find $1 -type f -name $2
|
||||
|
@ -46,3 +44,16 @@ function m2m {
|
|||
fi
|
||||
fi
|
||||
}
|
||||
function psk {
|
||||
if [[ "$1" == "--help" ]]; then
|
||||
echo "Beende Prozess '$1'"
|
||||
echo "psk = ps kill"
|
||||
echo "psk <prozessname>"
|
||||
else
|
||||
if [ -z "$1" ]; then
|
||||
echo "Prozessname fehlt..."
|
||||
else
|
||||
ps -ef | grep $1 | grep -v grep | awk '{ print $2 }' | xargs kill -9
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue