title: Is there such commands to merge multiple files in shell?
body: <p>For example, there're 5 numbers => [1,2,3,4,5] and 3 groups</p>
  
  <p>File1(Group1):</p>
  
  <pre><code>1
  3
  5
  </code></pre>
  
  <p>File2(Group2):</p>
  
  <pre><code>3
  4
  </code></pre>
  
  <p>File3(Group3):</p>
  
  <pre><code>1
  5
  </code></pre>
  
  <p>Output (column1: whether in Group1, column2: whether in Group2, column3: whether in Group3 [NA means not..]):</p>
  
  <pre><code>1 NA 1
  3 3 NA
  NA 4 NA
  5 NA 5
  </code></pre>
  
  <p>Or something like this (+ means in, - means not):</p>
  
  <pre><code>1 + - +
  3 + + -
  4 - + -
  5 + - +
  </code></pre>
  
  <p>I tried <code>join</code> and <code>merge</code>, but looks like both of them doesn't work well for <strong>multiple</strong> files.. (for example, 8 files)</p>