title: Row to column and column to row using awk
body: <p>I have two files containing as below</p>
  
  <pre><code>cat file1.txt
  a b c 
  1 2 3
  
  cat file2.txt
  a
  b
  c
  1
  2
  3
  </code></pre>
  
  <p>I want file1 to be arranged as</p>
  
  <pre><code>a
  b
  c
  1
  2
  3
  </code></pre>
  
  <p>and file2 to be arranged as</p>
  
  <pre><code>a b c
  1 2 3
  </code></pre>
  
  <p>I would like a solution using awk one line</p>