How to give muliple lines of input to a command in Bash
There are two ways of sending multi-lined input to a command. One method is to save all the input in a file and redirect it to the command as input. The other method is useful if your input is small and can be typed at the shell itself.
This example shows how to redirect contents of a file as input to a command at bash shell.
[neo@tehpulp ~]# type <message.txt Hi There I am NeoX [neo@tehpulp ~]#
The following example shows how to provide on the fly multi-lined input to a command at Bash shell. The “<<” operator with a word that determines end of input can be used as shown below.
[neo@techpulp ~]# cat <<EOF > Hello There > I am Neo > EOF Hello There I am Neo [neo@techpulp ~]#

