Help for this page

Select Code to Download


  1. or download this
    #!/bin/sh
    # If you are not passing bash var's into the PERL HEREDOC,
    ...
    print $STDOUTdata; # Doing the pipe write at the end will save you
    warn $STDERRdata;  # a lot of frustration.
    )" <myInputFile 1>prints.txt 2>warns.txt
    
  2. or download this
    #!/bin/sh
    set WRITEWHAT="bash vars"
    ...
    print \$STDOUTdata; # Doing the pipe write at the end will save you
    warn \$STDERRdata;  # a lot of frustration.
    )" <myInputFile 1>prints.txt 2>warns.txt