Categories
Linux Mastering Development

dividing specific colunm numbers using shell script

I have a text file, like this # MarkerIndex # TiltAngle (degrees) # PositionX (px) # PositionY (px) # 0 -62.450 1526.64 1205.00 0 -60.460 1507.84 1205.36 8 15.890 1535.96 2281.44 8 17.890 1538.96 2281.40 8 19.890 1542.60 2282.08 8 21.900 1545.96 2282.32 8 23.900 1550.64 2282.40 8 25.900 1554.52 2281.68 8 28.000 1559.36 2281.88 […]

Categories
Linux Mastering Development

dividing specific colunm numbers using shell script

I have a text file, like this 8 15.890 1535.96 2281.44 8 17.890 1538.96 2281.40 8 19.890 1542.60 2282.08 8 21.900 1545.96 2282.32 8 23.900 1550.64 2282.40 8 25.900 1554.52 2281.68 8 28.000 1559.36 2281.88 8 30.090 1563.56 2281.32 8 32.190 1568.64 2280.80 8 34.280 1573.12 2280.56 I want to keep the first two column […]