title: Print previous line if condition is met
body: <p>I would like to grep a word and then find the second column in the line and check if it is bigger than a value. Is yes, I want to print the previous line.</p>
  
  <p>Ex:</p>
  
  <p>Input file</p>
  
  <pre><code>AAAAAAAAAAAAA
  BB  2
  CCCCCCCCCCCCC
  BB 0.1
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>AAAAAAAAAAAAA
  </code></pre>
  
  <p>Now, I want to search for BB and if the second column (2 or 0.1) in that line is bigger than 1, I want to print the previous line.</p>
  
  <p>Can somebody help me with grep and awk? Thanks. Any other suggestions are also welcome. Thanks.</p>