nick34992
2/20/2017 - 2:26 AM

Bash: echo, exec, cat: File Descriptor for Reading File

Bash: echo, exec, cat: File Descriptor for Reading File

#!/bin/bash

echo 'this is a test line' > input.txt
exec 3<input.txt
cat <&3
# this is a test line