Copy stdin to stdout: Difference between revisions
Content added Content deleted
(Perl and Sed) |
|||
Line 2: | Line 2: | ||
=={{Header|Perl}}== |
=={{Header|Perl}}== |
||
<lang |
<lang sh> |
||
perl -pe '' |
perl -pe '' |
||
</lang> |
</lang> |
(Perl and Sed) |
|||
Line 2: | Line 2: | ||
=={{Header|Perl}}== |
=={{Header|Perl}}== |
||
<lang |
<lang sh> |
||
perl -pe '' |
perl -pe '' |
||
</lang> |
</lang> |
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.
<lang sh> perl -pe </lang>
<lang sh> sed -e </lang>