Question about the usage of julia

Dear All, I know in bash, we can use cat commend to concentrate some strings into one file, like:
cat > <<!
Hello world
I am wondering in Julia, can we do a similar way to achieve the goal? Thank you

For example, you could do:

write("", """
Hello world

Thanks. But if some variables in the contents, can we do it in the same way? Here is one shell example. Thanks

Julia is a general programming language, so just about anything is possible. What have you tried? Where have you looked?

Here are some sections of the docs that may be informative for this question:

Please also take a look at this post for some suggestions on how to make it easier for folks on the forum to help you.