title: error bash: syntax error near unexpected token `(' my code is correct
body: <p>I am trying to implement a hash function and here is my code:</p>
  
  <pre><code>import BitVector
  import glob
  
  
  path = '/home/vguda/Desktop/.txt'
  files=glob.glob(path)
  
  hash = BitVector.BitVector(size = 32)
  hash.reset(0)
  i = 0
  
  for file in files:
      bv = BitVector.BitVector( filename = file )
      while 1 :
            bv1 = bv.read_bits_from_file(8)
            if str(bv1) == "":
           break
        hash[0:8] = bv1 ^ hash[0:8]
        hash &gt;&gt; 8
        i = i+1 
  hash_str = ""
  hash_str = str( hash )
  text_file = open("/home/vguda/Desktop/result.txt ","w")
  text_file.write("Hash Code is %s" %hash_str)
  text_file.close()
  
  print hash
  print (i)
  </code></pre>
  
  <p>The displayed error is:</p>
  
  <pre><code>"bash: syntax error near unexpected token `('
  </code></pre>