Bash: echo, exec, cat: File Descriptor for Writing or Truncating Mode
#!/bin/bash exec 4>output.txt echo newline >&4 cat output.txt # newline