title: cat, grep and cut - translated to python
body: <p>maybe there are enough questions and/or solutions for this, but I just can't help myself with this one question: I've got the following command I'm using in a bash-script:</p>
  
  <pre><code>var=$(cat "$filename" | grep "something" | cut -d'"' -f2)    
  </code></pre>
  
  <p>Now, because of some issues I have to translate all the code to python. I never used python before and I have absolutely no idea how I can do what the postet commands do. Any ideas how to solve that with python?</p>