title: How to cut a range of lines defined by variables
body: <p>I have this python crawler output</p>
  <pre><code>[+] Site to crawl: http://www.example.com
  [+] Start time: 2020-05-24 07:21:27.169033
  [+] Output file: www.example.com.crawler
  
  [+] Crawling
     [-] http://www.example.com
     [-] http://www.example.com/
     [-] http://www.example.com/icons/ubuntu-logo.png
     [-] http://www.example.com/manual
      [i] 404 Not Found
  [+] Total urls crawled: 4
  
  [+] Directories found:
     [-] http://www.example.com/icons/
  [+] Total directories: 1
  
  [+] Directory with indexing
  </code></pre>
  <p>I want to cut the lines between &quot;Crawling&quot; &amp; &quot;Total urls crawled&quot; using awk or any other tool, so basically i wanna use variables to assign the NR to the first keyword &quot;Crawling&quot;, and a second variable assigned to it the NR value of the second limiter &quot;Total urls crawled&quot;, and then cut the range between the two, i tried something like this:</p>
  <pre><code>awk 'NR&gt;$(Crawling) &amp;&amp; NR&lt;$(urls)' file.txt
  </code></pre>
  <p>but nothing really worked, the best i got is a cut from the Crawling+1 line to the end of the file which isn't helpfull really, so how to do it and how to cut a range of lines with awk with variables!</p>
  <h1>awk</h1>