#!/usr/app/TurboShell/bin/bash
echo "this goes to the screen"
echo "this goes to the error output" >&2
ls missing-folder 2>error.txt || echo "ls failed, its message is in error.txt"
echo "first" >list.txt
echo "second" >>list.txt
cat >letter.txt <<EOF
Dear ${1:-reader},
list.txt has $(wc -l <list.txt) lines.
EOF
cat letter.txt
