This shows you the differences between two versions of the page.
— |
kurs:here.sh [2014/09/10 21:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <code> | ||
+ | #!/bin/bash | ||
+ | |||
+ | var='bli bla blub' | ||
+ | cat <<EOF | ||
+ | |||
+ | Die Kuh macht Muh | ||
+ | Viele Kuehe machen Muehe | ||
+ | |||
+ | $var | ||
+ | |||
+ | EOF | ||
+ | |||
+ | |||
+ | result=`bc <<EOF | ||
+ | scale=2 | ||
+ | 2/8 | ||
+ | EOF` | ||
+ | |||
+ | printf "Das Ergebnis ist [%-6.3f] \n" $result | ||
+ | </code> | ||