Note that there are some explanatory texts on larger screens.

plurals
  1. POhow can i print the column in text file to row wise using unix command?
    primarykey
    data
    text
    <p>I have file like this.. for eg:</p> <pre><code>number,dac,amountdac,expdate,0 1111,1,0.000000,2010-07-21,0 1111,2,0.000000,2010-07-21,0 1111,3,0.000000,2010-07-21,0 1111,4,0.000000,2010-07-21,0 1111,5,0.000000,2010-07-21,0 1111,6,0.000000,2010-07-21,0 1111,7,0.000000,2010-07-21,0 1111,8,0.000000,2010-07-21,0 1111,9,0.000000,2010-07-21,0 1111,10,0.000000,2010-07-21,0 2222,1,50.000000,2010-07-21,0 2222,2,0.000000,2010-07-21,0 2222,3,0.000000,2010-07-21,0 2222,4,0.000000,2010-07-21,0 2222,5,0.000000,2010-07-21,0 2222,6,0.000000,2010-07-21,0 2222,7,0.000000,2010-07-21,0 2222,8,10.000000,2010-07-21,0 2222,9,0.000000,2010-07-21,0 2222,10,0.000000,2010-07-21,0 3333,1,0.000000,2010-07-21,0 3333,2,0.000000,2010-07-21,0 3333,3,0.000000,2010-07-21,0 3333,4,0.000000,2010-07-21,0 3333,5,0.000000,2010-07-21,0 3333,6,0.000000,2010-07-21,0 3333,7,0.000000,2010-07-21,0 3333,8,0.000000,2010-07-21,0 3333,9,200.000000,2010-07-21,0 3333,10,50.000000,2010-07-21,0 </code></pre> <p>i want output like this, column 1 number is same for all dac1 to dac10. header i gave for your reference. in original file i don't have header.</p> <pre><code>number,dac1,dac2,dac3,dac4,dac5,dac6,dac7,dac8,dac9,dac10,amountdac1,amountdac2,amountdac3,,amountdac4,amountdac5,amountdac6,amountdac7,amountdac8,amountdac9,,amountdac10,expdate1,expdate2,expdate3,expdate4,expdate5,expdate6,expdate7,expdate8,expdate9,expdate10,0 1111,1,2,3,4,5,6,7,8,9,10,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,0 2222,1,2,3,4,5,6,7,8,9,10,50.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,10.000000,0.000000,0.000000,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,0 3333,1,2,3,4,5,6,7,8,9,10,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,200.000000,50.000000,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,2010-07-21,0 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload