Getting input from a file
wc < foo.txt
You can use the read statement to get information from the users.
read
read -p "What is your name?" name
read a b c
Can use the select statement like:
select
select a in b c d; do echo $a; done
A here document (Heredoc) is a type of redirection that allows you to pass multiple lines of input to a command.
The syntax of writing HereDoc takes the following form:
[COMMAND] <<[-] 'DELIMITER' HERE-DOCUMENT DELIMITER