Copy stdin to stdout

From Rosetta Code
Revision as of 12:58, 11 November 2018 by rosettacode>Maknongan (Perl and Sed)

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>