I have a matrix like following:

```
totalreadcount  36  27  13  13
bna-miR172e-3p  0   1   4805    2767
bna-miR167a 4   26  11818   15776
bna-miR172a 0   0   4302    2464
bna-miR319b-3p  102 60  94  51
bna-miR156a 0   0   139 59
bna-miR167d 38  108 55389   58479

```

I would like to divide each value of column by its first value.for example: in second column 36 is first value and i need to divide rest values like 0,4,102,0,38 by 36 and same with the other columns.
the matrix size is big, so anybody help me in doing such calculation through shell script or R-language scripting.