erste Version der Scripts.
This commit is contained in:
18
teil26/version4.sh
Executable file
18
teil26/version4.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#! /usr/bin/bash
|
||||
|
||||
# Version 3: Text als here Doc innerhalb des Scripts,
|
||||
# diesmal mit Redirection in eine Datei.
|
||||
|
||||
usage() {
|
||||
cat <<- EOF > test.txt
|
||||
Dies ist ein Beispiel für
|
||||
einen mehrzeiligen Text,
|
||||
der für einen Hilfetext steht.
|
||||
|
||||
Programm: ${0##*/}"
|
||||
EOF
|
||||
|
||||
}
|
||||
|
||||
usage
|
||||
exit 0
|
||||
Reference in New Issue
Block a user