Help for this page

Select Code to Download


  1. or download this
       perl -ple "BEGIN{open $to,'>',shift @ARGV;select $to}" destination.
    +txt source1.txt source2.txt
    
  2. or download this
    perl -ple "BEGIN{open $to,'>',shift @ARGV and select $to if $ARGV[0]}"
    
    ...
    
    # to file
    perl -ple "BEGIN{open $to,'>',shift @ARGV and select $to if $ARGV[0]}"
    + dst src1 src2
    
  3. or download this
    perl -ple "BEGIN{open $to,'>',shift @ARGV and select $to unless $ARGV[
    +0] eq 'STDOUT'}"
    
    ...
    perl -ple "BEGIN{open $to,'>',shift @ARGV and select $to unless $ARGV[
    +0] eq 'STDOUT'}" STDOUT src1 src2