To try the thousands of add-ons available here, download Mozilla Firefox, a fast, free way to surf the Web!
ĐóngChào mừng đến với tiện ích Firefox.
Choose from thousands of extra features and styles to make Firefox your own.
ĐóngĐánh giá cho The Unix and Linux Forums (unix.com) bởi Tiger19
Rated 3 out of 5 stars
userinfo fingermenü:
#Aufgabe: Übungsklausur
# 3. Aufgabe userinfo
if [ "$1" = "" ]; then
echo "Bitte Userkennung als Parameter mitgeben"
exit
fi
#########################################################################
ERGEBNIS="$1"
echo "$ERGEBNIS"
if [ "$1" == "$(ypcat passwd | cut -f1 -d":" | grep "$1")" ]; then
echo "Benutzerkuerzel existiert!"
else
echo "Benutzerkuerzel nicht vorhanden!"
fi
#########################################################################
# 1.
ERGEBNIS2=$(finger | grep "$1" | cut -f2-5 -d" ")
echo "$ERGEBNIS2"
# 2.
ERGEBNIS3=$(ps -u "$1")
echo "$ERGEBNIS3"
# 3.
ERGEBNIS4=$(ypcat passwd | cut -f6 -d":" | grep "$1")
echo "$ERGEBNIS4"
echo "$ERGEBNIS2$ERGEBNIS3$ERGEBNIS4" > Auswertung
exit
##########################################################################
##########################################################################
#Aufgabe: Übungsklausur
# 4. Aufgabe fingermenu
if [ "$1" == "" ]; then
echo "Angabe -1 oder -2 oder -3 fehlt!"
exit
else
if [ "$1" == "-1" ]; then
echo "Richtig"
finger | tail -n +2 | cut -c12-48
else
if [ "$1" == "-2" ]; then
if [ "$2" == "" ]; then
echo "Richtig"
WERRUFTAUF=$(whoami)
finger $WERRUFTAUF
else
finger "$2"
fi
else
if [ "$1" == "-3" ]; then
if [ "$2" == "" ]; then
echo "Eingabe falsch! Bitte unix Anlage angeben, danke!"
else
echo "Richtig"
finger @"$2"
fi
fi
fi
fi
fi
Để tạo ra bộ sưu tập của riêng mình, bạn phải có một tài khoản trên Tiện ích Mozilla.