title: Pass arguments to python from bash script
body: <p>I have been working on a script mixture of <code>bash</code> and <code>python</code> script. The bash script can receive unknown count input arguments. For example :</p>
  
  <pre><code>tinify.sh  test1.jpg test2.jpg test3.jpg .....
  </code></pre>
  
  <p>After the bash receives all, it pass these arguments to <code>tinify.py</code>. Now I have come out two ways to do that.</p>
  
  <ul>
  <li><p>Loop in <code>bash</code> and call <code>python tinify.py testx.jpg</code></p>
  
  <p>In another word, <code>python tinify test1.jpg</code> then <code>python tinify test2.jpg</code>, finaly <code>python tinify test3.jpg</code></p></li>
  <li><p>Pass all arguments to <code>tinify.py</code> then loop in <code>python</code></p></li>
  </ul>
  
  <p>But there is a problem, I want to filter same parameter for example if user input <code>tinify.sh  test1.jpg test1.jpg test1.jpg</code> , I only want <code>tinify.sh test1.jpg</code>.So I think it's easier to do in second way because python may be convenient.</p>
  
  <p><strong>How can I do to pass all arguments to python script?</strong> Thanks in advance!</p>