redirection
Bash close input descriptor
Close input descriptor n; does not delete the file.
Formal Syntax & Structure
bash syntaxbash
n<&-Return Value
redirection effect
Close input descriptor n; does not delete the file.
Working Example
Example Snippetbash
printf 'ok\n' > input.txtexec 3<input.txtIFS= read -r line <&3exec 3<&-printf '%s\n' "$line"