19 lines
280 B
Bash
Executable File
19 lines
280 B
Bash
Executable File
#! /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
|