<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to pass a python variables to shell script.? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-pass-a-python-variables-to-shell-script/m-p/28333#M20156</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I found the answer here: &lt;A href="https://stackoverflow.com/questions/54662605/how-to-pass-a-python-variables-to-shell-script-in-azure-databricks-notebookbles" target="test_blank"&gt;https://stackoverflow.com/questions/54662605/how-to-pass-a-python-variables-to-shell-script-in-azure-databricks-notebookbles&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;basically: &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;%python
import os
l =['A','B','C','D']
os.environ['LIST']=' '.join(l)print(os.getenv('LIST'))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;%sh
for i in $LIST
do
  echo $i
done&lt;/CODE&gt;&lt;/PRE&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2019 14:46:45 GMT</pubDate>
    <dc:creator>erikvisser1</dc:creator>
    <dc:date>2019-08-14T14:46:45Z</dc:date>
    <item>
      <title>How to pass a python variables to shell script.?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-a-python-variables-to-shell-script/m-p/28332#M20155</link>
      <description>&lt;P&gt;How to pass a python variables to shell script.in databricks notebook, The python parameters can passed from the 1 st cmd to next %sh cmd .? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 04:29:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-a-python-variables-to-shell-script/m-p/28332#M20155</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2019-02-13T04:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a python variables to shell script.?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-pass-a-python-variables-to-shell-script/m-p/28333#M20156</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I found the answer here: &lt;A href="https://stackoverflow.com/questions/54662605/how-to-pass-a-python-variables-to-shell-script-in-azure-databricks-notebookbles" target="test_blank"&gt;https://stackoverflow.com/questions/54662605/how-to-pass-a-python-variables-to-shell-script-in-azure-databricks-notebookbles&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;basically: &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;%python
import os
l =['A','B','C','D']
os.environ['LIST']=' '.join(l)print(os.getenv('LIST'))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;%sh
for i in $LIST
do
  echo $i
done&lt;/CODE&gt;&lt;/PRE&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 14:46:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-pass-a-python-variables-to-shell-script/m-p/28333#M20156</guid>
      <dc:creator>erikvisser1</dc:creator>
      <dc:date>2019-08-14T14:46:45Z</dc:date>
    </item>
  </channel>
</rss>

