title: awk without printing a newline for multiple files
body: <p>I have a (hopefully) quick and easy question which is driving me a bit bonkers! I have a bunch of files, and I want to print $1 from them. The files each have a few lines of output, let's say two. So if I print $1 from one file I might get something like this:</p>
  
  <p>1 0 </p>
  
  <p>However, what I'm trying to do is print from all the files as such:</p>
  
  <pre><code>awk '{printf $1}' files*
  </code></pre>
  
  <p>When I do that, the output is basically just one long line: 1110000111100000...etc. NOT what I want. I want the output to be like this:</p>
  
  <pre><code>1 0 
  0 1
  1 1
  </code></pre>
  
  <p>So that each line represents the output from each file. </p>
  
  <p>I tried:</p>
  
  <pre><code>awk 'BEGIN { ORS=" " }; { print $1}'
  </code></pre>
  
  <p>and quite a few iterations, so far no success. I know this should be simple, yet the answer has alluded me and help would be appreciated. For the record, this is NOT for any class, just my own work. Also, I did look on other posts here and elsewhere, and nothing has worked thus far. Thank you in advance. </p>