Hello world/Line printer: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: added whitespace, added an exclamation point to the output.) |
m (→{{header|REXX}}: added comments.) |
||
Line 626: | Line 626: | ||
but a shell command could be used. |
but a shell command could be used. |
||
<br><br>In DOS (or under Windows): |
<br><br>In DOS (or under Windows): |
||
<lang rexx>/*REXX program prints a string to the (DOS) line printer via redirection to a printer.*/ |
|||
<lang rexx>$= 'Hello World!' |
|||
$= 'Hello World!' /*define a string to be used for output*/ |
|||
'@ECHO' $ ">PRN"</lang> |
|||
'@ECHO' $ ">PRN" /*stick a fork in it, we're all done. */</lang> |
|||
=={{header|RPG}}== |
=={{header|RPG}}== |