Shell one-liner: Difference between revisions
Content added Content deleted
m (→{{header|FutureBasic}}: Added information) |
|||
Line 238: | Line 238: | ||
This is forcing the issue. FB has much more elegant ways of interacting with the Unix Shell. |
This is forcing the issue. FB has much more elegant ways of interacting with the Unix Shell. |
||
<lang futurebasic> |
<lang futurebasic> |
||
include "ConsoleWindow":dim a$:open "Unix",1,"cal":do:line input #1,a$:print a$:until eof(1):close 1 |
include "ConsoleWindow":dim a$:open "Unix",1,"cal 10 2018":do:line input #1,a$:print a$:until eof(1):close 1 |
||
</lang> |
</lang> |
||
Output |
Output |
||
<pre> |
<pre> |
||
October 2018 |
|||
Su Mo Tu We Th Fr Sa |
Su Mo Tu We Th Fr Sa |
||
1 2 3 4 5 6 |
1 2 3 4 5 6 |