Name="YAMIS"
Stich="yamis YAMIS Yet_Another_Machine_Information_Script
yet_another_machine_informations_script machine /proc proc informations info
Informationen informationen find cat Maschine maschine PC Computer computer"
Zeit="Don Oct 11 20:36:22 MEST 2001"
Kurz="YAMIS bietet viele Informationen über die eigene Maschine."
Lang="
YAMIS ist sehr einfach programmiert: Es zeigt einfach alle lesbaren Dateien
unterhalb von /proc an:
`exCodes yamis`
#!/bin/bash
# yamis - Yet Another Machine Information Script schows many informations about
# - the machine you use
# Copyright (C) Don Okt 11 20:38:00 MEST 2001 - now Ingo Blechschmidt
`cat gpl.lic`
`cat add.lic`
for i in \`find /proc/ -type f -print\`; do
if [ -r \$i ]; then
echo "==> \$i <=="
cat \$i
echo
fi
done
`exCodee`
Die Backticks (\`) sorgen dafür, dass die Ausgabe von find dem for-Befehl
übergeben wird. Mit dem -f Parameter für find übermittelt find
nur Dateien, und mit dem -r Parameter für test ([ und ] ist ein
shell-integriertes Alias für test) prüft es noch, ob die Datei lesbar
ist. Wenn ja, wird sie, samt Überschrift, angezeigt.
Eine Beispiel-Ausgabe (die Zeilenangaben wurden nachträglich
eingefügt, mittels $esCodes yamis | { a=0; while read; do a=\`expr \$a +
1\`; echo "\$a: \$REPLY"; done; } $esCodee) ist
hier zu sehen (120 KB!).
"
case $1 in
Name) echo $Name; exit;;
Stich) echo $Stich; exit;;
Zeit) echo $Zeit; exit;;
Kurz) echo $Kurz; exit;;
Lang) echo $Lang; exit;;
esac
# if [ "$1" = "Name" ]; then echo $Name; fi
mself_vA="txt/0014.txt txt/0038.txt txt/0067.txt txt/0070.txt"