Userbie

Custom End-Marker

You can choose an end-marker for cat with << as is shown in this screenshot. This construction is called a here directive and will end the cat command.

paul@debian8:~$ cat > hot.txt <<stop
> It is hot today!
> Yes it is summer.
> stop
paul@debian8:~$ cat hot.txt
It is hot today!
Yes it is summer.
paul@debian8:~$