title: PYTHON: How to pass asterisk (*) as command line argument
body: <p>I'm trying to make a python script that search words in files.
  If I pass <code>txt</code> it will only look in files with <strong>.txt</strong> extension, but I want to pass <code>*</code> as argument to search in <strong>every</strong> files.</p>
  
  <pre><code>if sys.argv[4] == "*"
  </code></pre>
  
  <p>Don't work and if I try</p>
  
  <pre><code>print sys.argv[4]
  </code></pre>
  
  <p>It print the name of the script</p>
  
  <pre><code>find.py
  </code></pre>
  
  <p>But not the same way as</p>
  
  <pre><code>print sys.argv[0]
  </code></pre>
  
  <p>As it will return</p>
  
  <pre><code>./find.py
  </code></pre>
  
  <p>So, someone already had this problem and, of course, solved it ?</p>