Files
bash-tut/teil26/version4.sh
2026-01-24 12:56:23 +01:00

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