Bash
verwandt: bash_scripte
Inhaltsverzeichnis |
schreibt output eines scriptes in log file
#zuoberst exec 2>&1>>log
rechnen
#!/bin/bash x=8 # initialize x to 8 y=4 # initialize y to 4 # now we assign the sum of x and y to z: z=$(($x + $y)) echo "The sum of $x + $y is $z"
quelle:http://www.geocities.com/tipsforlinux/articles2/044.html
datum von gestern über epochen skunden
EPOCHSEC=`date +%s`
# yesterday as epoch second
YESTERDAY=$(($EPOCHSEC - 86400))
#yesterday as date
YESTERDAY=`date --date "Jan 1, 1970 00:00:00 + ${YESTERDAY} seconds" +%F`
echo ${YESTERDAY}
gebraucht in: http://krungkuene.org/krung/tech/05/code/whatchanged.sh.txt
links
offical website
links zu manuals
deutsch