Copy stdin to stdout: Difference between revisions

From Rosetta Code
Content added Content deleted
(clarify)
(Perl and Sed)
Line 1: Line 1:
Create an executable file that copies stdin to stdout, or else a script that does so through the invocation of an interpreter at the command line.
Create an executable file that copies stdin to stdout, or else a script that does so through the invocation of an interpreter at the command line.

=={{Header|Perl}}==
<lang Perl>
perl -pe ''
</lang>

=={{Header|sed}}==

<lang sh>
sed -e ''
</lang>

Revision as of 12:58, 11 November 2018

Create an executable file that copies stdin to stdout, or else a script that does so through the invocation of an interpreter at the command line.

Perl

<lang Perl> perl -pe </lang>

sed

<lang sh> sed -e </lang>