Introduction
Here documents let you send multiple lines of text or commands to a program easily without typing them one by one.
You want to provide input to a command that reads from standard input.
You need to create a multi-line text file quickly inside a script.
You want to run multiple commands inside another command like ssh or ftp.
You want to write a block of text to a file without using echo many times.