Home
Random
Log in
Settings
About Rosetta Code
Disclaimers
Rosetta Code
Search
Get system command output: Difference between revisions
Language
Watch
View source
← Older edit
Newer edit →
Content deleted
Content added
Revision as of 02:20, 5 December 2017
view source
Robbie
(
talk
|
contribs
)
1,452
edits
→{{header|FreeBASIC}}
← Older edit
Revision as of 15:52, 9 January 2018
view source
rosettacode>Gpapo
→{{header|Julia}}
Newer edit →
Line 384:
=={{header|Julia}}==
{{works with|Julia|0.6}}
<lang julia>
# In a single string
▼
ls = readstring(`ls`)
▲
#
In a single string
:
# In multiple lines
▼
ll
<lang julia>ls
=
readlines
readstring
(`ls
-l
`)
</lang>
</lang>
▲
#
In multiple lines
:
<lang julia>ll = readlines(`ls -l`)</lang>
=={{header|Kotlin}}==