Friday, June 23, 2017

Julia - Command Line - Executing Shell commands at the prompt

In Julia Language, keying in semi-colon (;) at the prompt (julia>) will change the prompt to (shell>) in which we can execute shell commands.


$ julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0 (2017-06-19 13:05 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-pc-linux-gnu

julia> 

shell> 

julia>


To return to the julia prompt (julia>) just key in backspace. Of course, pressing the return key will take you the prompt in the next line.

No comments:

Post a Comment