4
This commit is contained in:
5
beispiele/create_files_with_space.sh
Normal file
5
beispiele/create_files_with_space.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
for f in {1..9}; do
|
||||
touch "$f xx.txt"
|
||||
done
|
5
beispiele/files/create_files_with_space.sh
Normal file
5
beispiele/files/create_files_with_space.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
for f in {1..9}; do
|
||||
touch "$f xx.txt"
|
||||
done
|
3
beispiele/finduser.sh
Normal file
3
beispiele/finduser.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
find / -user dany -print 2>/dev/null
|
@@ -1,20 +1,24 @@
|
||||
#!/bin/bash
|
||||
clear
|
||||
|
||||
echo "Diese Infos werden von mysystem.sh bereitgestellt."
|
||||
echo
|
||||
|
||||
echo "Hallo, $USER"
|
||||
echo
|
||||
|
||||
echo "Heute ist der `date \"+%d.%m.%Y - %H:%M:%S\"`, dies ist Woche Nr. `date +"%V"`."
|
||||
echo
|
||||
|
||||
echo "Diese Benutzer sind im Moment verbunden:"
|
||||
w | cut -d " " -f 1 - | grep -v USER | sort -u
|
||||
echo
|
||||
echo "Dies ist `uname -s` und wir laufen auf einem `uname -m` Prozessor."
|
||||
|
||||
echo "Dies ist `uname -s` und wir laufen auf einem $(uname -m) Prozessor."
|
||||
echo
|
||||
|
||||
echo "Die uptime ist:"
|
||||
uptime
|
||||
echo
|
||||
|
||||
echo "Das ist alles!"
|
||||
MSG="\nDas ist alles! Bye, $USER! \n\n"
|
||||
printf "${MSG}"
|
||||
|
16
beispiele/remove-spaces.sh
Normal file
16
beispiele/remove-spaces.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
suf=$1
|
||||
if [ $# -gt 0 ]
|
||||
then
|
||||
for f in *.$suf; do
|
||||
bn=`basename "$f" .$suf | tr [:blank:] _`
|
||||
new=$bn.$suf
|
||||
echo "neuer Dateiname:"
|
||||
echo $new
|
||||
mv "$f" $new
|
||||
done
|
||||
else
|
||||
echo "Kein Suffix gegeben!!"
|
||||
echo "Verwendung: strip-space.sh SUFFIX"
|
||||
echo "Beende ...."
|
||||
fi
|
@@ -1,10 +0,0 @@
|
||||
[ 5.328340] usbcore: registered new interface driver snd-usb-audio
|
||||
[ 5.424330] input: Logitech MX Ergo as /devices/pci0000:00/0000:00:02.0/usb2/2-10/2-10:1.2/0003:046D:C52B.0006/0003:046D:406F.0007/input/input13
|
||||
[ 5.425022] logitech-hidpp-device 0003:046D:406F.0007: input,hidraw4: USB HID v1.11 Keyboard [Logitech MX Ergo] on usb-0000:00:02.0-10:1
|
||||
[11730.912969] usb usb2: root hub lost power or was reset
|
||||
[11730.913009] usb usb1: root hub lost power or was reset
|
||||
[11731.374991] usb 1-3: reset high-speed USB device number 4 using ehci-pci
|
||||
[11731.434994] usb 2-10: reset full-speed USB device number 5 using ohci-pci
|
||||
[11731.823005] usb 2-9: reset full-speed USB device number 4 using ohci-pci
|
||||
[11732.375288] usb 2-2: reset low-speed USB device number 3 using ohci-pci
|
||||
[11733.063086] usb 2-1: reset low-speed USB device number 2 using ohci-pci
|
Reference in New Issue
Block a user