# Question about the usage of julia

**URL:** <https://discourse.julialang.org/t/question-about-the-usage-of-julia/96862>\
**Category:** New to Julia\
**Created:** [March 30, 2023, 10:07pm UTC](https://discourse.julialang.org/t/question-about-the-usage-of-julia/96862 "2023-03-30T22:07:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jianqixi](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jianqixi](https://discourse.julialang.org/u/jianqixi)\
**Post date:** [March 30, 2023, 10:07pm UTC](https://discourse.julialang.org/t/question-about-the-usage-of-julia/96862/1 "2023-03-30T22:07:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [March 30, 2023, 10:45pm UTC](https://discourse.julialang.org/t/question-about-the-usage-of-julia/96862/2 "2023-03-30T22:45:43Z")

</div>

For example, you could do:

```julia
write("file.name", """
Hello world
a+b+c+…
""")

```

---

<div class="post-metadata">

**Author:** ![jianqixi](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jianqixi](https://discourse.julialang.org/u/jianqixi)\
**Post date:** [March 30, 2023, 10:49pm UTC](https://discourse.julialang.org/t/question-about-the-usage-of-julia/96862/3 "2023-03-30T22:49:44Z")

</div>

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

 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/1/b146ce34fdec0c31f9eeeb038d59a6e2504d5222.png)

---

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [March 31, 2023, 12:01am UTC](https://discourse.julialang.org/t/question-about-the-usage-of-julia/96862/4 "2023-03-31T00:01:42Z")

</div>

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:

- [Variables · The Julia Language](https://docs.julialang.org/en/v1/manual/variables/)
- [Strings · The Julia Language](https://docs.julialang.org/en/v1/manual/strings/#string-interpolation)
- [Scope of Variables · The Julia Language](https://docs.julialang.org/en/v1/manual/variables-and-scoping/#Loops-and-Comprehensions)

Please also take a look at [this post](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) for some suggestions on how to make it easier for folks on the forum to help you.
