title: Use awk to list files with spaces in them
body: <p>I was doing some experimenting with awk last year. I wrote the following to modify git output:</p>
  <p><code>git status -s | awk '{printf(&quot;\t%s: %s %s\n&quot;, FNR, $1, $2)}'</code></p>
  <p>This outputs something like</p>
  <pre><code>        1: M &quot;_notes/Digital
          2: M _notes/Perl.md
          3: M &quot;_notes/Tech
          4: M _notes/vim.md
  </code></pre>
  <p>It works but chokes when the file has a space in it like in lines 1 and 3 in the above example. Note that I'm on MacOS and these two files are surrounded by apostrophes:</p>
  <pre><code>'Digital Gardening.md'
  'Tech Stuff.md'
  </code></pre>
  <p>How can I modify this so it will output files with spaces properly?</p>