1echo hello >greeting 2cat <<EOF && 3$(cat greeting) 4EOF 5{ 6 echo $? 7 cat greeting 8} >/dev/null 9rm greeting 10