redirection
Bash Input redirection
Connects descriptor 0 to a readable file. Does not itself consume or modify its content.
Formal Syntax & Structure
bash syntaxbash
command < fileReturn Value
behavior
Connects descriptor 0 to a readable file. Does not itself consume or modify its content.
Working Example
Example Snippetbash
printf '%s\n' one > input.txtcat < input.txt