title: Searching home directory with awk
body: <p>I have this code that shows files that have been modified in the last 10 hours.</p>
  
  <p>This works fine; however, I want it to do this only to the <code>home</code> directory. I tried putting <code>$HOME</code> as I had found with other examples of AWK taking from a specific directory; however, it didn't work. I realize this is not the best way to go about doing it, but it's an exercise for me, and <code>grep</code> is meant to be used; otherwise, I would definitely use <code>find</code>. </p>
  
  <p>It's probably fairly simple, but I'm new to <code>bash</code> so it's pretty confusing to me. Any help would be appreciated. Thanks!</p>
  
  <pre><code>echo "The files modified less than 10 hours ago are:"
  ls -algG --time-style=+%s | grep ^[^d] | awk -vlimit=$(date +%s -d '10 hours ago') '$4 &gt;   limit { print substr($0, index($0, $4) + length($4) + 1) }'
  </code></pre>