1 Answered Questions for the topic heredoc
How does "cat << EOF" work in bash?
I needed to write a script to enter multi-line input to a program (`psql`).
After a bit of googling, I found the following syntax works:
cat << EOF | psql ---params
Still looking for help? Get the right answer, fast.
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.