Hello world/Line printer: Difference between revisions
Content added Content deleted
(added batch; renamed bourne shell to unix shell; redid markup for basic & shell) |
(→Tcl: Added implementation) |
||
Line 8: | Line 8: | ||
<lang dos>ECHO Hello world!">PRN</lang> |
<lang dos>ECHO Hello world!">PRN</lang> |
||
=={{header|Tcl}}== |
|||
On Unix only: |
|||
<lang tcl>exec lp << "Hello World!"</lang> |
|||
=={{header|UNIX Shell}}== |
=={{header|UNIX Shell}}== |
Revision as of 07:18, 3 October 2010
BASIC
<lang qbasic>LPRINT "Hello World!"</lang>
Batch File
<lang dos>ECHO Hello world!">PRN</lang>
Tcl
On Unix only: <lang tcl>exec lp << "Hello World!"</lang>
UNIX Shell
<lang bash>echo 'Hello World!'|lp</lang>