Downloads
Downloads Home » Misc scipts
DocumentsDate added
-
queryDistrohot!
- 31.12.2009
-
Kleines Script welches die Distribution des Linux herausfindet.Small script which detects the Linux distribution.Tested on following distributions but will work also on other distributions:# opensuse openSuSE 11.0 (no lsb_release) and 11.2 (lsb_release)
# fedora Fedora 12
# centos CentOS 5.4
# kubuntu Kubuntu 9.10
# debian Debian 5.0.3
# arch Arch
# slackware Slackware 13.0.0.0.0
# mandriva Mandriva 2009.1# debian Knoppix# linuxmint Mint 8
See comment in source code for more tested distributions
- Hits: 412
-
Recursive fibonacci bash scripthot!
- 19.03.2008
-
Beispiel, wie rekursiv mit einem bash script die Fibonacci Zahlen berechnet werden könnenExample how to calculate the fibonacci numbers with a recursive bash script
- Hits: 300
-
queryDistro.pyhot!
- 29.08.2010
-
Python Version von dem bash Script queryDistro auf dieser WebseitePython version of bash Script queryDistro from this websiteDetails -> http://www.linux-tips-and-tricks.de/index.php/Latest/How-to-find-out-which-Linux-distribution-a-bash-script-runs-on.html
- Hits: 224
-
syncFileshot!
- 14.03.2010
-
Kleines Script, welches mit rsync zwei Verzeichnisbäume synchronisiert und automatisch eine --exclude-file erstellt von allen gesyncten Dateien. Das erlaubt im Zielverzeichnis die gesynclten Dateien nach erfolgreichem zu löschen. Der Anwendungsfall ist dabei wie folgt:Die gesyncten Dateien (Filme, Musik etc) werden auf eine USB Platte kopiert und deren Inhalt dann auf einen anderen Rechner kopiert. Danach werden sie auf der USB Platte wieder gelöscht. Beim erneuten syncen der Dateien werden die schon bereits gesyncten Dateien nicht mehr auf die USB Platte kopiert da sie in einer --exclude Liste für rsync stehen.
- Hits: 188
-
updateJoomlaStatsTLDshot!
- 08.01.2011
-
Process all joomlaStats entries in the DB for US entries and update the top level domain name if they are incorrect
- Hits: 186
-
umlautentfernunghot!
- 27.06.2011
-
Entfernen von Umlauten aus Dateinamen
- Hits: 131
-
recursive and interative calculation of a factorial with bash
- 05.06.2011
-
Kleines Beispielscript welches rekursiv und iterativ die Fakultäten in bash berechnetEnglish:Small sample script which calculates the factorials with a recursive and interative algorithm in bash
- Hits: 36
-
compareDistroRPMs.py
- 20.10.2011
-
Funktion: Vergleicht zwei Dateien die mit 'rpm -qa | sort > rpm_xx.yy' erzeugt wurden um herauszufinden welche Pakete sich
in der alten Installation (erste Datei file) befinden und in der neuen Installation (zweite Datei)
Der letzte Parameter kann ein regulärer Ausdruck sein um bestimmte Pakete von der Liste auszuschliesen, z.B. "(lib|yast2|sax2|bundle)"
schliesst alle Pakete die mit lib oder yast2 oder sax2 oder bundle beginnen aus.
Beispiel: Erstelle eine Datei auf der alten Installation als root mit 'rpm -qa | sort > rpm_11.2.lst'
und erstelle eine Datei auf der neuen Installation als root mit 'rpm -qa | sort > rpm_11.4.lst'
Danach dieses Script aufrufen mit
./compareDistroRPMs.py rpm_11.2.lst rpm_11.4.lst "(lib|yast2|sax2|bundle)
Purpose: Compare two files created with 'rpm -qa | sort > rpm_xx.yy' listings to find out which packages were installed
in the old installation (first file) and are not installed in the new installation (second file)
Last parameter can be a regular expression of to exclude some packages from the list, e.g. "(lib|yast2|sax2|bundle)"
excludes all packages starting with lib or yast2 or sax2 or bundle
Example: Create listing on old installation as root with 'rpm -qa | sort > rpm_11.2.lst'
and create listing on new installation as root with 'rpm -qa | sort > rpm_11.4.lst'
Then call this script with
./compareDistroRPMs.py rpm_11.2.lst rpm_11.4.lst "(lib|yast2|sax2|bundle)"
- Hits: 28