bash: psk --

This commit is contained in:
Michael Grote 2022-02-17 18:09:11 +01:00
parent 2dfabccd91
commit 65431d8c82

View file

@ -74,19 +74,19 @@ function m2m {
fi
fi
}
function psk {
if [[ "$1" == "--help" ]]; then
echo "Beende Prozess "\$1""
echo ""
echo " Usage: psk <prozessname>"
else
if [ -z "$1" ]; then
echo "[ERROR] Prozessname fehlt..."
else
ps -ef | grep "$1" | grep -v grep | awk '{ print $2 }' | xargs kill -9
fi
fi
}
#function psk {
# if [[ "$1" == "--help" ]]; then
# echo "Beende Prozess "\$1""
# echo ""
# echo " Usage: psk <prozessname>"
# else
# if [ -z "$1" ]; then
# echo "[ERROR] Prozessname fehlt..."
# else
# ps -ef | grep "$1" | grep -v grep | awk '{ print $2 }' | xargs kill -9
# fi
# fi
#}
function rgf {
if [[ "$1" == "--help" ]]; then
echo "Finde alle Dateien die "\$1" im Namen haben."
@ -177,6 +177,7 @@ alias grep="grep -i --color=auto"
alias hostname="hostname -f"
alias untar="tar -xzf"
alias unmount="umount"
alias psk="pkill"
# git
alias gp="git stash && git pull && git stash pop"
alias gf="git fetch"