title: How can i print the data in tabular format in shell script?
body: <p>I am working on a script which needs to display the data in tabular format.
  For example: From the below data, (I am just representing in tabular format for better understanding). I need to form a table by using below column code. if the code value is 0,0,1 for particular unique ID then it is a failure case(for example:</p>
  
  <pre><code>17348514-1426250247230 has executed 3 times 0,0,1)
                                              F,F,S  will be considered as a failure case.
  
  
  Year Mon D  Time Stamp     Unique ID                TT      Code
  2015 Mar 13 09:48:16:099 -813380420-1426240092971  3.037     1
  2015 Mar 13 09:54:47:525 -477148470-1426240484040  3.402     1
  2015 Mar 13 11:26:42:728 1290473798-1426245992973  3.455     1
  2015 Mar 13 12:37:27:338 17348514-1426250247230    0.008     0
  2015 Mar 13 12:37:27:346 17348514-1426250247230    0.016     0
  2015 Mar 13 12:37:27:354 17348514-1426250247230    0.024     1
  2015 Mar 13 12:45:56:452 1124502614-1426250756375  0.009     0
  2015 Mar 13 12:45:56:460 1124502614-1426250756375  0.017     0
  2015 Mar 13 12:45:56:467 1124502614-1426250756375  0.024     1
  2015 Mar 13 12:54:29:835 289692663-1426251267376   2.384     1
  2015 Mar 13 13:24:53:226 2011983525-1426253085135  2.574     1
  2015 Mar 13 14:28:13:076 -74229411-1426256890662   2.339     1
  </code></pre>
  
  <p>The result table should print like below format. I don't want to print total success,total errors . Below one is a success one.Hence Success count is 1 and error count is 0. </p>
  
  <pre><code>Date      Hour  Time    UniqueID               Success   Error      timetaken
  2015Mar13 14    14:28  -74229411-1426256890662   1          0         2.339 
  
  From the first table,
  2015 Mar 13 12:37:27:338 17348514-1426250247230    0.008     0
  2015 Mar 13 12:37:27:346 17348514-1426250247230    0.016     0
  2015 Mar 13 12:37:27:354 17348514-1426250247230    0.024     1
  </code></pre>
  
  <p>This is failure case. so the result tabular format which needs to print like below(adding to above row)</p>
  
  <pre><code>Date      Hour  Time    UniqueID               Success   Error      timetaken
  2015Mar13 14    14:28  -74229411-1426256890662   1          0         2.339     
  2015Mar13  12    12:37  17348514-1426250247230   0          1         0.024     
  </code></pre>
  
  <p>Any help would be appreciated</p>