Copy stdin to stdout: Difference between revisions

From Rosetta Code
Content added Content deleted
(Perl and Sed)
Line 2: Line 2:


=={{Header|Perl}}==
=={{Header|Perl}}==
<lang Perl>
<lang sh>
perl -pe ''
perl -pe ''
</lang>
</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 sh> perl -pe </lang>

sed

<lang sh> sed -e </lang>