title: BASH: find the string and print all related comments above
body: <p>i'm using the following script to call certain rows from the files:</p>
  
  <pre><code>find / -type f -name "*.prop" -exec grep -Fi "$keyword" --color {} +
  </code></pre>
  
  <p>It works cool, but in addition to it i need to print all the comments above this string. All of them start with '#' char.
  Eg: using </p>
  
  <pre><code>find / -type f -name "*.prop" -exec grep -Fi "*API*" --color {} +
  </code></pre>
  
  <p>returns me just "API.v=2" and "selectAPI=true"</p>
  
  <p>However i'd like to have all the comments above as well:</p>
  
  <pre><code>#Explanation
  #Use 1 for...
  #use 2 for...
  API.v=2
  
  #Another usage
  selectAPI=true
  </code></pre>
  
  <p>How can i do this?</p>