Copy stdin to stdout: Difference between revisions

Content added Content deleted
(Added XPL0 example.)
(Applesoft BASIC)
Line 77: Line 77:
END</lang>
END</lang>


=={{header|Applesoft BASIC}}==
<lang gwbasic>0 GET C$ : PRINT C$; : GOTO</lang>
=={{header|AWK}}==
=={{header|AWK}}==
Using the awk interpreter, the following command uses the pattern // (which matches anything) with the default action (which is to print the current line) and so copy lines from stdin to stdut.
Using the awk interpreter, the following command uses the pattern // (which matches anything) with the default action (which is to print the current line) and so copy lines from stdin to stdut.