nav-left cat-right
cat-right

csv Dateien nach LaTeX konvertieren

Das Skript convertiert csv Zeilen mit “;” als Trenner in LaTeX kompatible Tabellenzeilen csv2latextable.script   if [ -z $1 ] then echo "No file to convert given to script - exit now" exit fi   # for ";" seperation sed "s/;/ \& /g; s/$/ \\\tabularnewline/" $1 > $1.latextable.txt   # for tabular seperation # sed "s/\t/ \& /g; s/$/...

Cd mounten

Mountet eine CD nach /mnt/isoCD mountCD.sh #!/bin/sh mount -o loop -t iso9660 "$1"...

Restore some configuration files

Sometimes I do not want to reuse my old $HOME/.kde folder completely or other hidden folders after I reinstalled the operating system. In this case I want to copy only selected folders and file to the new $HOME. This script does most of the necessary copy operations for me: CopyConfigFiles.script #!/bin/bash   # --------------------------------------------------------- # copy_and_backup_Files () { COPY=$3...

shell: is the device mounted ?

The following function allows to test if a device is already mounted. #!/bin/sh # --------------------------------------------------------- # function is_mounted () { # 1. mount aufrufen. # 2. Mit grep Zeile mit $MOUNTDIR ausfiltern. # 3. Anzahl der Zeilen zaehlen. # 4. Alle Leerzeichen entfernen. # Wenn eine Zeile vorhanden war, ist der Wert von RETURN 1   MOUNTDIR=$1 TESTVALUE=$(mount | grep $MOUNTDIR...

shell: does the server exist ?

The following function allows to test for the existens of a server in the network via ping, but with a better interface #!/bin/sh   # --------------------------------------------------------- # function server_exists () { # ping Optionen: # -c : Anzahl von pings # -n : nur numerisch, keine DNS Abfragen TESTSERVER=$1 if (ping -c 1 -n -w 2 $TESTSERVER > /dev/null 2>&1) ; then # echo...
Page 2 of 3123