title: One text files 10000 words one per line how to group them
body: <p>I dont really know where to start with this code.</p>
  
  <p>I have a textfile there is 1 word per line in it its quite big 10 000 lines. What i want is to group them 4 words per line.</p>
  
  <p>So lets say my file look like this.</p>
  
  <pre><code>user1
  user2
  user3
  user4
  user5
  user6
  user7
  user8
  </code></pre>
  
  <p>and so on 10 000 lines</p>
  
  <p>What i want to do is make another textfile with the output like</p>
  
  <pre><code>user1 user2 user3 user4
  user5 user6 user7 user8
  </code></pre>
  
  <p>and so on for all those lines (it is one word per line)</p>
  
  <p>So far ive got tips to do it like this: </p>
  
  <pre><code>paste -d " "  - - - - &lt; filename.txt
  </code></pre>
  
  <p>But this do not work i dont know if there is a limitation it works fine when i try it on a file with only 10 lines of words. But in my big file it does not work.</p>
  
  <p>So what i am thinking to solve this is to use while loops or similar. 
  I would prefer it to be in BASH. Or is there any another way to do what i want to do?</p>