Take notes on the command line: Difference between revisions
Content added Content deleted
m (→{{header|Python}}: Consistent quote style) |
Walterpachl (talk | contribs) (→{{header|REXX}}: Refurbished and rexx notes ? added) |
||
Line 2,955: | Line 2,955: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
<syntaxhighlight lang="rexx">/*REXX program |
<syntaxhighlight lang="rexx">/*REXX program implements the "NOTES" command (append text to a file from the C.L.). */ |
||
⚫ | |||
⚫ | |||
Select |
|||
⚫ | |||
When arg(1)='?' Then Do |
|||
Say "'rexx notes text' appends text to file" notes |
|||
Say "'rexx notes' displays file" notes |
|||
End |
|||
⚫ | |||
Do while lines(notes)>0 |
|||
⚫ | |||
End |
|||
End |
|||
Otherwise Do |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
End |
|||
⚫ | |||
{{out}} |
|||
<pre> |
|||
K:\>rexx notes ? |
|||
'rexx notes text' appends text to file notes.txt |
|||
'rexx notes' displays file notes.txt |
|||
K:\>rexx notes starting work |
|||
⚫ | |||
⚫ | |||
07 Aug 2023 19:39:41 Monday |
|||
⚫ | |||
starting work</pre> |
|||
⚫ | |||
end /*while*/ |
|||
else do |
|||
⚫ | |||
⚫ | |||
end |
|||
⚫ | |||
=={{header|Ruby}}== |
=={{header|Ruby}}== |