Jump to content

Copy stdin to stdout: Difference between revisions

Applesoft BASIC
(Added XPL0 example.)
(Applesoft BASIC)
Line 77:
END</lang>
 
=={{header|Applesoft BASIC}}==
<lang gwbasic>0 GET C$ : PRINT C$; : GOTO</lang>
=={{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.
413

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.