I expected to compose a script to enter multi-line input to a program (psql).
After a touch of googling, I tracked down the accompanying sentence structure works:
cat << EOF | psql ---params
BEGIN;
`pg_dump ----something`
update table .... statement ...;
END;
EOF
This accurately builds the multi-line string (from BEGIN; to END;, comprehensive) and pipes it as an input to psql.
In any case, I have no clue about how/why it works, can somebody if it's not too much trouble, clarify?
I'm alluding primarily to cat << EOF, I know > outputs to a file, >> appends to a file, < reads input from file.
What does << precisely do?
Also, is there a man page for it?