title: Filtering out date in bash shell script from output of a command and not reading input from file
body: <p>The command is</p>
  <pre class="lang-sh prettyprint-override"><code>sacct -u  -S 2021-07-01 -E 2021-08-01  --format=jobID,Submit -D
  </code></pre>
  <p>I have a command that I run in bash that gives output as follows (snapshot). It does not read from file</p>
  <pre><code>Job ID           Submit
  128444           2021-07-01T10:12:30
  127898           2021-06-09T03:45:30
  127999           2021-06-21T16:45:20
  129999           2021-07-15T11:30:29
  131989           2021-07-31T01:20:30
  </code></pre>
  <p>I need to filter and show only job id in month of July, that is from 2021-07-01 to 2021-07-31 and not include June entries.</p>
  <p>I tried awk but its not working.</p>
  <pre><code>sacct -u  -S 2021-07-01 -E 2021-08-01  --format=jobID,Submit -D |
  awk '{print $2}'| awk '/^2021-07-01*/,/2021-07-31*/'
  </code></pre>
  <p>Is there a one liner that can do this?</p>