Copy stdin to stdout: Difference between revisions

Content added Content deleted
Line 4: Line 4:


=={{Header|AWK}}==
=={{Header|AWK}}==
Using the pattern // (which matches anything) with the default action (which is to print the current line) the following program will 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.
<lang AWK>//</lang>
<lang AWK>awk "//"</lang>


=={{Header|C}}==
=={{Header|C}}==