title: How to hand over bash variable to your python script?
body: <p>I am rather new to bash scripting, more used to batch. Anyways what I am trying to do is to be able to get a string from a bash variable that is created from an nmap scan and make it a variable for a python script. I was going to use grep but it gets too much. Here are the results:</p>
  
  <pre><code>Starting Nmap 5.21 ( http://nmap.org ) at 2014-05-22 20:12 PDT
  Nmap scan report for 192.168.1.201
  Host is up (0.00020s latency).
  Not shown: 96 filtered ports
  PORT     STATE SERVICE
  135/tcp  open  msrpc
  139/tcp  open  netbios-ssn
  445/tcp  open  microsoft-ds
  3389/tcp open  ms-term-serv
  MAC Address: 02:21:9B:88:3C:06 (Unknown)
  
  Nmap done: 1 IP address (1 host up) scanned in 4.77 seconds
  </code></pre>
  
  <p>What I want to get is: <code>MAC Address: 02:21:9B:88:3C:06</code> WITH the space at the end. SO it would be <code>MAC=$</code></p>
  
  <p>Thank you in advance</p>