commands.sh

julia

all

A high-level, high-performance dynamic programming language for technical computing.

More info →

Options (3)

-e, --evalboolean

Evaluate a string containing Julia code

Example: julia {{[-e|--eval]}} '{{julia_code}}'
-E, --printboolean

Evaluate an expression and print the result

Example: julia {{[-E|--print]}} '{{(1 - cos(pi/4))/2}}'
-t, --threadsboolean

Start Julia in multithreaded mode, using `n` threads

Example: julia {{[-t|--threads]}} {{n}}

Examples (7)

Start a REPL (interactive shell)

Execute a Julia program and exit

julia program.jl

Execute a Julia program that takes arguments

julia program.jl arguments

Evaluate a string containing Julia code

julia [-e|--eval] 'julia_code'

Evaluate a string of Julia code, passing arguments to it

julia [-e|--eval] 'for x in ARGS; println(x); end' arguments

Evaluate an expression and print the result

julia [-E|--print] '(1 - cos(pi/4))/2'

Start Julia in multithreaded mode, using `n` threads

julia [-t|--threads] n
made by @shridhargupta | data from tldr-pages