Anonymous user
Execute a system command: Difference between revisions
Added LFE example
(→{{header|Julia}}: A new entry for Julia) |
(Added LFE example) |
||
Line 707:
-rw-r--r-- 1 _lasso staff 38 Oct 29 16:05 myfile.lasso
-rw-r--r--@ 1 _lasso staff 175 Oct 29 18:18 rosetta.lasso</pre>
=={{header|LFE}}==
In the LFE REPL:
<lang lisp>
> (os:cmd "ls -alrt")
</lang>
That will display output on a single line, with literal newlines.
For pretty output, compose with <code>io:format</code>:
<lang lisp>
> (io:format (os:cmd "ls -alrt"))
</lang>
=={{header|Liberty BASIC}}==
|