Tag: heredoc

68 votes
9 answers
1.1K views
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 th

avatar
Eddie
0 1 0 9
asked 07 September, 2021
63 votes
30 answers
2.9K views
Creating multiline strings in JavaScript

I have the following code in Ruby. I want to convert this code into JavaScript. What is the equivalent code in

avatar
Royal
0 1 0 9
asked 07 September, 2021