erste Version der Scripts.

This commit is contained in:
2026-01-24 12:56:23 +01:00
parent 7ab41a9829
commit 7628e01b69
5 changed files with 64 additions and 0 deletions

18
teil26/version4.sh Executable file
View 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