# Copy Julia REPL to a txt file

**URL:** https://discourse.julialang.org/t/copy-julia-repl-to-a-txt-file/36055
**Category:** New to Julia
**Created:** [March 16, 2020, 7:06pm UTC](https://discourse.julialang.org/t/copy-julia-repl-to-a-txt-file/36055 "2020-03-16T19:06:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jmcastro2109](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmcastro2109/32/38427_2.png) [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)
#### Post date: [March 16, 2020, 7:06pm UTC](https://discourse.julialang.org/t/copy-julia-repl-to-a-txt-file/36055/1 "2020-03-16T19:06:30Z")

</div>

Hi,

How can I copy the printed outputs on my REPL on txt file?

I read the documentation but it is not clear to me.

Thanks

---

<div class="post-metadata">

### Author: ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)
#### Post date: [March 16, 2020, 8:09pm UTC](https://discourse.julialang.org/t/copy-julia-repl-to-a-txt-file/36055/2 "2020-03-16T20:09:03Z")

</div>

If you’re on linux, you should be able to just redirect the output of your script to a file in bash, e.g. `julia myscript.jl > output.txt`

---

<div class="post-metadata">

### Author: ![jmcastro2109](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmcastro2109/32/38427_2.png) [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)
#### Post date: [March 16, 2020, 8:15pm UTC](https://discourse.julialang.org/t/copy-julia-repl-to-a-txt-file/36055/3 "2020-03-16T20:15:51Z")

</div>

Sadly I am running Julia on Windows, not on a Unix-based machine ☹

---

<div class="post-metadata">

### Author: ![jmcastro2109](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jmcastro2109/32/38427_2.png) [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)
#### Post date: [March 16, 2020, 9:00pm UTC](https://discourse.julialang.org/t/copy-julia-repl-to-a-txt-file/36055/4 "2020-03-16T21:00:43Z")

</div>

I ended up using this package [GitHub - jacob-roth/PrintLog.jl: An incredibly simple logger! All it does is to log all outputs of `print` and `println` into a file.](https://github.com/jacob-roth/PrintLog.jl)
