2021-06-23 20:18:14 +02:00
|
|
|
# rg, gibt nur Dateipfade aus, sucht nur nach Dateinamen
|
|
|
|
function rgf {
|
2021-06-23 20:36:45 +02:00
|
|
|
rg --files -g "*$1*"
|
2021-06-23 20:18:14 +02:00
|
|
|
}
|
2021-07-03 11:07:55 +02:00
|
|
|
function psk {
|
|
|
|
ps -ef | grep $1 | grep -v grep | awk '{ print $2 }' | xargs kill -9
|
|
|
|
}
|
2021-10-26 08:39:40 +02:00
|
|
|
function ffind {
|
|
|
|
find $1 -type f -name $2
|
|
|
|
}
|
2021-08-24 08:28:27 +02:00
|
|
|
ssh() { #() ist die kurzform von function
|
2021-08-23 23:06:35 +02:00
|
|
|
tmux rename-window "$*"
|
|
|
|
command ssh "$@"
|
|
|
|
}
|
2021-10-23 14:29:05 +02:00
|
|
|
function m2m {
|
2021-11-09 10:55:16 +01:00
|
|
|
if [[ "$1" == "--help" ]]; then
|
|
|
|
echo "Sende Datei '$2' per Mail; Betreff = '$1'"
|
|
|
|
echo "m2m = mail2me"
|
|
|
|
echo "m2m <Pfad zu Datei> <Betreff>"
|
|
|
|
else
|
|
|
|
if [ ! -f "$1" ]; then
|
|
|
|
echo "Dateipfad fehlt..."
|
|
|
|
else
|
|
|
|
if [ -z "$2" ]; then
|
|
|
|
echo "Betreff fehlt..."
|
|
|
|
else
|
|
|
|
echo "$1" | mail -s "$1" -A "$2" michael.grote@posteo.de
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2021-10-23 14:29:05 +02:00
|
|
|
}
|