Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

RFC Using PERL HEREDOC script within bash

by dcronin135 (Acolyte)
on Aug 27, 2014 at 03:29 UTC ( #1098695=perlmeditation: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1098695]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2019-12-14 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?