redirection usage in bash shell

Belows are the code what I want to understand:

#!/bin/bash
cat > pl.gp <<EOF
...
CONTENTS
...
EOF

The resultant of this shell script gives a pl.gp file which contains every texts before EOF meets. Does anyone help me understand this powerful redirection usage of shell?


Source: shell

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.