in reply to Duplicating STDIN
It boils to Perl reading from the files listed on the command line or from the keyboard (don't forget Ctrl-Z to end in that case).#!/usr/bin/perl -w use strict; while (<>) { print $_; }
<Update>I forgot to mention that it can be called like this: script_name.pl input_file
|
|---|