Good job awk master!

Cheers,
Chris

On Apr 12, 2012, at 6:55 PM, Nguyen, Ricky wrote:

> Worked around my issue by avoiding brackets completely. Used awk regular 
> expression instead.
> 
> I'd still be interested to know how to do a shell IF statement in PGE
> 
> On Apr 12, 2012, at 6:04 PM, Nguyen, Ricky wrote:
> 
>> Hi all,
>> 
>> I want to do this in bash:
>> 
>> if [[ $x = 'hello' ]]; then
>>      echo "goodbye"
>> fi
>> 
>> 
>> But if I try that in PGE, it will attempt to do dynamic replacement. So then 
>> I tried this:
>> 
>> if [bash_test]; then
>>      echo "goodbye"
>> fi
>> 
>> <metadata key="bash_test" val="[[ $x = 'hello' ]]" envReplace="false"/>
>> 
>> And I still get the same failure. FYI, the script in the work directory 
>> looks like:
>> 
>> if null]; then
>> 
>> Anyone know a workaround for this?
>> 
>> Thanks,
>> Ricky
>> 
>> 
>> ---------------------------------------------------------------------
>> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, 
>> is for the sole use of the intended recipient(s) and may contain confidential
>> or legally privileged information. Any unauthorized review, use, disclosure
>> or distribution is prohibited. If you are not the intended recipient, please
>> contact the sender by reply e-mail and destroy all copies of this original 
>> message.  
>> 
>> ---------------------------------------------------------------------
>> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, 
> is for the sole use of the intended recipient(s) and may contain confidential
> or legally privileged information. Any unauthorized review, use, disclosure
> or distribution is prohibited. If you are not the intended recipient, please
> contact the sender by reply e-mail and destroy all copies of this original 
> message.  
> 
> ---------------------------------------------------------------------
> 


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reply via email to